loadRaw

Wraps IMG_Load_RW which loads an image from a data buffer into a software dsdl2.Surface

  1. Surface loadRaw(void[] data)
    @safe @trusted
    static if(bindSDLImage)
    loadRaw
    (
    const void[] data
    )
  2. Surface loadRaw(void[] data, string type)

Parameters

data void[]

data buffer of the image

Return Value

Type: Surface

dsdl2.Surface of the loaded image

Throws

dsdl2.SDLException if failed to load the image

Meta