In a message regarding RGBsurface crashes Windows builds dated Sat, 18 Mar
2006 20:05:32 -0800, Joe Huber said that ...
> ...from jpg using OpenAsPicture on Windows returns an RGBsurf but
> crashes the whole app if you use it. This works fine in RB 5.5.
It seems to crash if you use the last pixel.
Obviously it's a nasty bug but this is a sort of workaround
InRGBSurf = InPix.RGBSurface
if InRGBSurf <> nil then
z1 = InPix.width-1
z2 = InPix.height-1
for i = 0 to z1
for j = 0 to z2
if i <> z1 or j <> z2 Then
c = InRGBSurf.Pixel(i,j)
Else
c = InPix.Graphics.Pixel(i,j)
End if
--
Steve Garman
Using REALbasic 2006r1 Professional on Windows XP Pro
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>