Image

Categoryrefcounted
Typehime_image_t
InheritsObject

Encapsulate one of several image representations.

Constructors

hime_image_t hime_image_create_empty()

Create an empty image.

Return

hime_image_t

hime_image_t hime_image_create_from_skia_image(skia_image)

Create an image that wraps the passed skia_image.

Parameters

Return

hime_image_t

Class methods

hime_image_t hime_image_create_from_file_path(path)

Create a Image by reading from the file located at path.

This function will try to read the image with best representation, and NULL will returned if the image can not be recognized.

Parameters

Return

hime_image_t

Methods

bool hime_image_is_empty(self)

Return true if the image stores no representations.

Parameters

Return

bool

hime_size_t hime_image_get_size(self)

Get size of image in DIP coordinate system.

Parameters

Return

hime_size_t