428 {
429
430 ((ObjectInterface *) clazz->interface)->dealloc =
dealloc;
431
432 ((ImageInterface *) clazz->interface)->imageWithBytes =
imageWithBytes;
445 ((ImageInterface *) clazz->interface)->
size =
size;
446}
static Image * imageWithBytes(const uint8_t *bytes, size_t length, float pixelDensity)
static Image * imageWithResource(const Resource *resource, float pixelDensity)
static Image * imageWithSurface(SDL_Surface *surface)
static Image * initWithSVGSize(Image *self, const uint8_t *bytes, size_t length, SDL_Size points, float pixelDensity)
static Image * imageWithResourceName(const char *name, float pixelDensity)
static SDL_Size size(const Image *self)
static Image * imageWithData(const Data *data, float pixelDensity)
static Image * imageWithSVG(const uint8_t *bytes, size_t length, float scale)
SDL_Size size(const Image *self)
Image * initWithData(Image *self, const Data *data)
Initializes this Image with the specified Data.
Image * initWithResourceName(Image *self, const char *name)
Initializes this Image, loading the Resource by the given name.
Image * initWithSVGSize(Image *self, const uint8_t *bytes, size_t length, SDL_Size points)
Initializes this Image by rasterizing the specified SVG at points times the pixel density,...
Image * initWithBytes(Image *self, const uint8_t *bytes, size_t length)
Initializes this Image with the specified bytes.
Image * imageWithSVG(const uint8_t *bytes, size_t length, float scale)
Instantiates an Image by rasterizing the specified SVG.
Image * initWithSVG(Image *self, const uint8_t *bytes, size_t length, float scale)
Initializes this Image by rasterizing the specified SVG at its intrinsic size times scale.
Image * imageWithResourceName(const char *name)
Instantiates an Image with the specified Resource name.
Image * imageWithData(const Data *data)
Instantiates an Image with the specified Data.
Image * initWithSurface(Image *self, SDL_Surface *surface)
Initializes this Image with the given surface.
Image * imageWithResource(const Resource *resource)
Instantiates an Image with the specified Resource.
Image * imageWithSurface(SDL_Surface *surface)
Instantiates an Image with the specified surface.
Image * initWithResource(Image *self, const Resource *resource)
Initializes this Image with the specified Resource.