• Welcome to Theos PowerBasic Museum 2017.

PictureCtx ? or FreeImageCtx ? or old ImageCtx

Started by Robert Sarrazin, May 29, 2009, 05:28:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Robert Sarrazin

 ???PictureCtx create 11 Octobre 2008,
freeImageCtx  create 07 May 2009,
both seem DDT style or SDK.
both have the same picture for demo.
both seem have the same function. ::)
both can use resource file.
:-\ WHERE IS  the difference.

For the imageCtx create in 2008 is not
compatible with PB 9.xx but easy to modify
the local FIT to nFIT.

The FreeImageCtx "It is the new version
for PB 9.xx"
:) Thank for your time  :)

Robert Sarrazin

I learn:
With PictureCtx. If you ask to see a picture not exist
it will created the file exp:
rs29.bmp I got the rs28.bmp but not the rs29.bmp
I ask to see rs30.bmp, rs31.bmp
all them is on my dir now:
rs28.bmp   901k
rs29.bmp      0k
rs30.bmp      0k
rs31.bmp      0k
not to bad, don't have to check if exist.
And open the door to know what the customer want to
see I just have to check all the file with 0k in the dir.
exp: If I have belair,rav4,corolla, and customer whant to see
prius now I know. I got Prius.bmp  0k.   ;D

José Roca

 
The newest is GdipImageCtx, that uses GDI+ :)

PictureCtx is the oldest and only supports a limited range of image types. FreeImageCtx is the one that supports a wider variety of image types, but needs FreeImage.dll. ImageCtx is now deprecated because it uses an undocumented interface used by Internet Explorer and stretching is no longer possible if you have IE8 installed (instead of stretched, the images are repeated).