diff options
Diffstat (limited to 'include/c')
-rw-r--r-- | include/c/sk_image.h | 2 | ||||
-rw-r--r-- | include/c/sk_types.h | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/c/sk_image.h b/include/c/sk_image.h index 34682c72d3..c9973ac125 100644 --- a/include/c/sk_image.h +++ b/include/c/sk_image.h @@ -28,7 +28,7 @@ sk_image_t* sk_image_new_raster_copy(const sk_imageinfo_t*, const void* pixels, * On success, the encoded data may be processed immediately, or it may be ref()'d for later * use. */ -sk_image_t* sk_image_new_from_data(const sk_data_t* encoded); +sk_image_t* sk_image_new_from_encoded(const sk_data_t* encoded, const sk_irect_t* subset); sk_data_t* sk_image_encode(const sk_image_t*); diff --git a/include/c/sk_types.h b/include/c/sk_types.h index dc530f374b..00632e0af3 100644 --- a/include/c/sk_types.h +++ b/include/c/sk_types.h @@ -68,6 +68,13 @@ typedef struct { } sk_point_t; typedef struct { + int32_t left; + int32_t top; + int32_t right; + int32_t bottom; +} sk_irect_t; + +typedef struct { float left; float top; float right; |