loadRaw

Wraps IMG_LoadTyped_RW which loads a typed image from a data buffer into a software dsdl2.Surface

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

Parameters

data void[]

data buffer of the image

type string

specified type of the image

Return Value

Type: Surface

dsdl2.Surface of the loaded image

Throws

dsdl2.SDLException if failed to load the image

Meta