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.
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.