Hi all,
I was looking for a small quick image viewer, one that can be linked to image files (open on double click)
I couldn't find anything I liked so I tried something myself
I have 2 files 1 landscape and 1 portrait.
This is the sub, but when I call it the ide (on the ppc) gives me an Out Of Memory error, this only happens with an image file of 737KB the 593KB file loads as it should...
Is there a better way to accomplish this, or is there a memory estriction on B4P ...
Am i missing something
in other words
:sign0085:
Please?
I was looking for a small quick image viewer, one that can be linked to image files (open on double click)
I couldn't find anything I liked so I tried something myself
I have 2 files 1 landscape and 1 portrait.
This is the sub, but when I call it the ide (on the ppc) gives me an Out Of Memory error, this only happens with an image file of 737KB the 593KB file loads as it should...
B4X:
Sub ProcessImage(Image)
Image = "L.jpg"
Img.New1(AppPath&"\"&Image)
If Img.Width > Img.Height Then
'Landscape
AddImage("Form1","Image",20,75,200,150)
Else If Img.Width < Img.Height Then
'Portait
AddImage("Form1","Image",45,40,150,200)
End If
Control("Image").Image = Img.Value
Control("Image").Mode = cStretchImage
End Sub
Is there a better way to accomplish this, or is there a memory estriction on B4P ...
Am i missing something
in other words
:sign0085:
Please?