PDA

View Full Version : Finally an Image Control



ErosOlmi
13-10-2008, 09:02
Finally I was able to integrate a new control working with different image formats other than just BMP.
I get the main code from José Roca forum at http://www.jose.it-berater.org/smfforum/index.php?topic=2866.msg8626#msg8626

Control is named IMAGECTX and will be avaibale as 3rd party module instead of including it into UI module. This is not a final decision but while I'm experimenting it is better in this way.

So far I've implemented the following fucntions:
UI_IMAGECTX
UI_IMAGECTX_LoadImage
UI_IMAGECTX_SetImageAdjustment
UI_IMAGECTX_GetImageAdjustment
UI_IMAGECTX_SetBkColor
UI_IMAGECTX_GetBkColor
UI_IMAGECTX_GetBitmapHandle
UI_IMAGECTX_GetImageWidth
UI_IMAGECTX_GetImageHeight

You can have a test using the following attached thinBasic Bundle file.

Very soon in official thinBasic release. I'm working on few more functions to add to the module.

Eros

PS: once again a big thanks to José Roca for his immense and generous work.

Michael Hartlef
13-10-2008, 09:13
Great! Please include drawing functions and color retrieving functions on PerPixel base.

ErosOlmi
13-10-2008, 10:29
Michael,

I do not think this control will have what you asked but there is another interesting control doing what you need: http://www.jose.it-berater.org/smfforum/index.php?topic=2868.0

Currently I'm using IMAGECTX project not only to add a new image multi format control to thinBasic UI arsenal but also to study new Power Basic COM interfaces recently introduced with version 9 of their compiler and to study the many new include files José Roca has provided in http://www.jose.it-berater.org/smfforum/index.php?topic=2869.0

So I think you will see what you need very soon. It will take a while, but we will have great new features in thinBasic 2.x release (maybe before :) )

Ciao
Eros

Petr Schreiber
13-10-2008, 15:58
Hi Eros,

good job!
This will be very useful for various projects.


Petr

catventure
13-10-2008, 21:46
Looks very promising.

The test bundle worked well.

catventure.

ErosOlmi
08-11-2008, 22:29
This image control is now present in thinBasic preview version 1.7.0.0 refresh 2008.11.08
Those of you having access to the preview, can test and report any problem.

For those willing to test thinBasic preview 1.7.0.0, just drop me a personal message here in forum and I will send URL where to download it.

Ciao
Eros