191 views
in GUI Development by

image

Hi,

My idea is, 

1. get two image's raw data

2. multiply  tow image's the alpha value

3. return Bitmap data.

How can I get  EW APIs to get image RAW data?

Or some good way to implement this request?

BR,

 

1 Answer

0 votes
by
 
Best answer

Hello,

what you plan to do is difficult. Accessing bitmap data in Embedded Wizard project is not foreseen. You can implement the operations in C code. For this purpose, see EwLockBitmap(), EwUnLockBitmap() and XBitmapLock data structure with further details concerning pixel data storage and color formats. The C code can be used at the runtime of the application in target. To use it also at the design time in Embedded Wizard Studio, you will ned to implement so-called Intrinsic Module.

Further note: on various targets containing hardware graphics accelerator (typically 3D GPUs) the access to bitmap memory is limited or even not possible. In such case trying to accces the bitmap with EwLockBitmap() will fail.

Best regards

Paul Banach

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...