On Apr 20, 2007, at 2:09 PM, tbuchler wrote:

> Is there a way to grab the image from a graphics element other than by
> iterating through the pixels one at a time:
>
>   dim B as Picture
>   for x = 0 to me.width -1
>     for y = 0 to me.height -1
>       B.Graphics.Pixel(x,y) = graphics.Pixel(x,y)
>     next y
>   next x
>
> It works, but takes forever.
>
> I'm looking for something that is the inverse of graphics.DrawPicture.


dim newPicture as new Picture(oldPicture.Width, oldPicture.Height, 32)
newPicture.Graphics.DrawPicture oldPicture, 0, 0


This does not work quite as one might expect with masked pictures,  
though.

Charles Yeomans

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to