Theos PowerBasic Museum 2017

Archive => Discussion - Legacy Software (PBWIN 9.0+/PBCC 5.0+) => Topic started by: Robert Sarrazin on May 29, 2009, 05:28:23 AM

Title: PictureCtx ? or FreeImageCtx ? or old ImageCtx
Post by: Robert Sarrazin on May 29, 2009, 05:28:23 AM
 ???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  :)
Title: Re: PictureCtx ? or FreeImageCtx ? or old ImageCtx
Post by: Robert Sarrazin on May 29, 2009, 04:18:54 PM
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
Title: Re: PictureCtx ? or FreeImageCtx ? or old ImageCtx
Post by: José Roca on May 29, 2009, 10:27:32 PM
 
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).