PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → 7.5 image size
7.5 image size
Débuté par Bert, 03 mar. 2004 14:27 - 3 réponses
Posté le 03 mars 2004 - 14:27
Is there any way to find the size of an image on disk by programing?
When using the fselect function a cursor over will pop up a tooltip that shows the size of an image on disk in pixels.
Bert
Posté le 03 mars 2004 - 14:41
Look at BitmapInfo, it works for image on disk and also for those included into the project.
HTH Raimund

Is there any way to find the size of an image on disk by programing?
When using the fselect function a cursor over will pop up a tooltip that shows the size of an image on disk in pixels.
Bert



http://www.invitec.com
Posté le 03 mars 2004 - 16:11
Thanks Raimund,
I had searched for everything I could think of to find something that would work and didn't find this.
Thanks again.
Bert
Look at BitmapInfo, it works for image on disk and also for those included into the project.
HTH Raimund

Is there any way to find the size of an image on disk by programing?
When using the fselect function a cursor over will pop up a tooltip that shows the size of an image on disk in pixels.
Bert
Posté le 03 mars 2004 - 18:23
Hello Bert,
As Raimund said BitmapInfo does the job.
>From on-line help;
ImageInfo, Format are strings
Height, Width are int
// Retrieving the image characteristics
ImageInfo = BitmapInfo("C:\Windows\TILES.BMP")
Format = ExtractString(ImageInfo, 1)
Width = Val(ExtractString(ImageInfo, 2))
Height = Val(ExtractString(ImageInfo, 3))
// Display the characteristics
Info("Image format: "+ Format, "Width: " + Width,...
"Height: "+ Height)
Don
Thanks Raimund,
I had searched for everything I could think of to find something that would work and didn't find this.
Thanks again.
Bert
Look at BitmapInfo, it works for image on disk and also for those included into the project.
HTH Raimund

Is there any way to find the size of an image on disk by programing?
When using the fselect function a cursor over will pop up a tooltip that shows the size of an image on disk in pixels.
Bert