From e3f363fea7dddbbbf3ad7302aae09ce593220701 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Mon, 1 May 2023 22:12:30 +0900 Subject: [PATCH] common render: added a new type for one byte pixel data. This is designed using for masking buffers. @Issue: https://github.com/thorvg/thorvg/issues/976 --- src/lib/tvgRender.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/tvgRender.h b/src/lib/tvgRender.h index 2fb52e0a..1a8472d0 100644 --- a/src/lib/tvgRender.h +++ b/src/lib/tvgRender.h @@ -41,6 +41,7 @@ enum ColorSpace ARGB8888, //The channels are joined in the order: alpha, red, green, blue. Colors are alpha-premultiplied. ABGR8888S, //The channels are joined in the order: alpha, blue, green, red. Colors are un-alpha-premultiplied. ARGB8888S, //The channels are joined in the order: alpha, red, green, blue. Colors are un-alpha-premultiplied. + Grayscale8, //One single channel data. Unsupported //TODO: Change to the default, At the moment, we put it in the last to align with SwCanvas::Colorspace. };