SK_C_API void sk_bitmap_set_volatile(sk_bitmap_t* cbitmap, bool value);
SK_C_API void sk_bitmap_erase(sk_bitmap_t* cbitmap, sk_color_t color);
SK_C_API void sk_bitmap_erase_rect(sk_bitmap_t* cbitmap, sk_color_t color, sk_irect_t* rect);
+SK_C_API uint8_t sk_bitmap_get_addr_8(sk_bitmap_t* cbitmap, int x, int y);
+SK_C_API uint16_t sk_bitmap_get_addr_16(sk_bitmap_t* cbitmap, int x, int y);
+SK_C_API uint32_t sk_bitmap_get_addr_32(sk_bitmap_t* cbitmap, int x, int y);
+SK_C_API void* sk_bitmap_get_addr(sk_bitmap_t* cbitmap, int x, int y);
SK_C_API sk_color_t sk_bitmap_get_pixel_color(sk_bitmap_t* cbitmap, int x, int y);
SK_C_API sk_color_t sk_bitmap_get_index8_color(sk_bitmap_t* cbitmap, int x, int y);
SK_C_API void sk_bitmap_set_pixel_color(sk_bitmap_t* cbitmap, int x, int y, sk_color_t color);
AsBitmap(cbitmap)->erase(color, AsIRect(*rect));
}
+uint8_t sk_bitmap_get_addr_8(sk_bitmap_t* cbitmap, int x, int y)
+{
+ return *(AsBitmap(cbitmap)->getAddr8(x, y));
+}
+
+uint16_t sk_bitmap_get_addr_16(sk_bitmap_t* cbitmap, int x, int y)
+{
+ return *(AsBitmap(cbitmap)->getAddr16(x, y));
+}
+
+uint32_t sk_bitmap_get_addr_32(sk_bitmap_t* cbitmap, int x, int y)
+{
+ return *(AsBitmap(cbitmap)->getAddr32(x, y));
+}
+
+void* sk_bitmap_get_addr(sk_bitmap_t* cbitmap, int x, int y)
+{
+ return AsBitmap(cbitmap)->getAddr(x, y);
+}
+
sk_color_t sk_bitmap_get_pixel_color(sk_bitmap_t* cbitmap, int x, int y)
{
return AsBitmap(cbitmap)->getColor(x, y);