1.4k views
in Embedded Wizard Studio by
Dear all,

when I trying to use extern bitmaps in my project I get this error "Call to an unknown method 'EwLoadExternBitmap()'".

What is it wrong?

Thanks in advance

Best regards

Gianni

1 Answer

+2 votes
by

Dear Gianni,

the class Resources::ExternBitmap provides the functionality to handle a bitmap loaded dynamically at the runtime from an extern image source. Bitmaps loaded in this manner can be used as regular bitmap resources. Please note, that this class provides only an interface for integrating your own image loader (e.g. PNG, JPG, GIF decoder) - it does not contain the image decoder itself!

The function EwLoadExternBitmap() is part of this interface and has to be implemented by yourself, in order to provide the image data.

Please have a look into the provided sample 'ExternBitmap' which contains a simple version of this function. If you want to use this infrastructure on your target (e.g. because you want to use a PNG, JPG, ... decoder), you should first try to get the interface of the example up and running on your target and then try to include your own decoder.

I hope this helps...

by

I continue answering in this thread...

The functionality for loading the external bitmap is necessary for the target system (e.g. STM32Fx) - here you need to implement the function EwLoadExternBitmap() as C code.

In order to provide this functionality within Embedded Wizard Studio (this means, to provide the same functionality within the Prototyper) a so called Intrinsic Module is necessary. In principle this is a Windows DLL loaded into Embedded Wizard Studio to add a certain functionality.

Please have a look into the provided example: There you will find the C module externbitmaploader.c which is used for the target - and you will find the file ExternBitmapLoader.ewi. This file (*.ewi = Embedded Wizard Intrinsic) is the Windows DLL that provides the extern bitmap loader functionality for the Prototyper.

You will also find a Visual Studio Project in order to build the Intrinsic module.

There is an alternative to keep things more simple:

If you do not need to work with dynamically loaded images within the Prototyper, then just use a regular bitmap resource in case of Prototyper and use the extern bitmap resource only in case of target.

This can be controlled by using the build-in macro $prototyper.

Does this answer your question? If not, let us know some more details what you finally want to achieve.

by

Dear Manfred,

ok thanks. Now everthing seem to be more clear. 

I'd like to load a bmp file using the prototiper. For this purpose i'm trying to modify the externbitmaploader.c file in visual studio project. Could you please give me an example of code to load a bmp file from a folder that i can use in the EwLoadExternBitmap function?

Thanks in advance

Best regards

Gianni Perugini

 

 
by

Dear Manfred, 

I'm using extern bitmap to display multiframe stored in flash memory.

libJPEG also used in my program and overwrite EwLoadExternBitmap  as guide in here

My problem is I can display single jpeg image well but multi jpeg image is very jiter (very slow, fps is low).

Each jpeg image has size 800x480

Can anyone help me to solve it ?

Thanks

 

Embedded Wizard Website | Privacy Policy | Imprint

...