Tutorial
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
40
for
(y = 0; y < height; y++)
{
red = 255 - (2 * x);
green = y * 4;
blue = 0;
alpha = 255;
*((MM_U32 *)(addr + (4*((y * width) + x)))) = ((red << 24) | (green << 16) | (blue << 8) | alpha);
}
}
MM_GDC_UNLOCK(addr);
}
Figure 15. Pattern on Black&White image on constant color