Image Manipulation

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by nemesis64.

Tis is the "core" of a little piece of program i made:

Result = LoadImage(#Image1,infile$)
GrabImage(#Image1, #Image2, 32, 34, 320, 240)
ResizeImage(#Image2,200,140)
Result = SaveImage(#Image2, outfile$ , #PB_ImagePlugin_PNG)

But when i run, an "ERROR: #Image object not initialized" and the "GrabImag" line is marked..

where is the problem??

please help!

...and Yes! I'm a registered user of PureBasic!

My Amiga:
A1200 Blizzard1230/50 + 68882 FPU, 64MB FastRam, 6GB HD, AGA, OS3.1 ,ROM 3.1,PCMCIA NET CARD

My PC:
PIII 866,256 Mb,20+15Gb,DVD,CDRW,RADEON VIVO,SBLIVE,NET CARD,MODEM 56K
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Kale.

try testing the result of:

Result = LoadImage(#Image1, infile$)

If the function fails, 0 is returned, else all is fine, also what format image are you loading?

--Kale

In love with PureBasic! :)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by GPI.

check the result of the loadimage()
( Debug result )

PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
Post Reply