Hello all,
using this code snippet:
VGPath rect;
VGPaint green;
VGfloat alphaValues[] = { 1.0, 1.0, 1.0, 0.3, 0.0, 0.0, 0.0, 0.0 };
green = vgCreatePaint();
vgSetColor(green, 0x00FF00FF);
vgSetPaint(green, VG_FILL_PATH | VG_STROKE_PATH);
vgSetfv(VG_COLOR_TRANSFORM_VALUES, 8, alphaValues);
vgSeti(VG_COLOR_TRANSFORM, VG_TRUE);
vgDrawPath(rect, VG_FILL_PATH);
I would like to change the alpha channel of the green color to be 0.3. However it has no effect on alpha.
I was playing with it and for R,G,B channels the transformations worked.
EGLConfig Attributes:
{
EGL_RED_SIZE, 5,
EGL_GREEN_SIZE, 6,
EGL_BLUE_SIZE, 5,
EGL_ALPHA_SIZE, 0,
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
EGL_RENDERABLE_TYPE, EGL_OPENVG_BIT,
EGL_NONE
}
Any idea why alpha remains unchanged ??
Thanks in advance for any comments/suggestions.
Martin