in GUI Development by

Is it possible to read the colour value of a pixel for a component / view at point<x, y>? Essentially read within the GUI the value that would be passed to the display?

I am looking to implement a colour check of a user imported image (ExternalBitmap) to see if it clashes with other elements.

1 Answer

0 votes

Hi Phil,

are you looking for a solution to access the content of a bitmap or do you want to read the content of the resulting framebuffer?

In case you want to access an image (e.g. an external bitmap) you can use EwLockBitmap() in the similar manner as you write the content of an extern bitmap and iterate through the rows of pixel. In case you want to access the framebuffer - it depends on the target that you are using and how the framebuffer is used (e.g. double buffering).

Let me know...

Best regards,


Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint