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_thime_image_t hime_image_create_from_skia_image(skia_image)
Create an image that wraps the passed skia_image.
Parameters
hime_skia_image_tskia_image
Return
hime_image_tClass 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_tpath
Return
hime_image_tMethods
bool hime_image_is_empty(self)
Return true if the image stores no representations.
Parameters
hime_image_const_tself
Return
boolhime_size_t hime_image_get_size(self)
Get size of image in DIP coordinate system.
Parameters
hime_image_const_tself
Return
hime_size_t