SOLVED: V4RB, Picture, Windows
Ruslan Zasukhin
sunshine at public.kherson.ua
Sat Feb 28 00:51:53 CST 2004
on 2/28/04 12:49 AM, George A. Graham Jr. at gagraham at comcast.net wrote:
> Ruslan,
>
> I figured out what was going on after you stressed that you couldn't handle
> 32-bit JPEGs. My display adapter on my computer is set for 32-bit and that
> is what QT wsa using. THe following code fixes the problem.
>
> TempPicture = f.OpenAsPicture
> if TempPicture <> nil and mCursor <> nil then
> SavePicture = New Picture(TempPicture.Width, TempPicture.Height, 24)
> SavePicture.Graphics.DrawPicture TempPicture, 0, 0
>
> The SavePicture is the one I save to the DB and use in the Canvas. It works
> perfectly. I did have to add a Timer to pause drawing the picture because I
> set the scrollbar max before drawing. Before the Timer, the scrollbards got
> set but the picture didn't show up. Thanks again for looking into this.
>
> Regards,
> George
Thank you, George for info.
I have CC this to lists for others.
--
Best regards,
Ruslan Zasukhin [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com
To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------
More information about the Valentina
mailing list