Image
Category | refcounted |
Type | hime_image_t |
Inherits | Object |
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
hime_skia_image_t
skia_image
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
hime_file_path_t
path
Return
hime_image_t
Methods
bool hime_image_is_empty(self)
Return true if the image stores no representations.
Parameters
hime_image_const_t
self
Return
bool
hime_size_t hime_image_get_size(self)
Get size of image in DIP coordinate system.
Parameters
hime_image_const_t
self
Return
hime_size_t