What kind of JPEG--is this one you dragged to your project as an
internal item, or are you reading it in at runtime from a file?
And what platform are you using?
The jpegs are stored in a database and read as needed at runtime. I
want them to appear at a specific location in the canvas. When a jpeg
doesn't exist for the record, a pict that was dragged into the project
displays correctly.
I'm running RB 5.5.4 on Mac OS 10.3.7
I did get the images to display but not correctly initially. Reading
the jpeg from the database and drawing it to the canvas actually placed
it off the canvas and partially in the window (a drawer window).
I found that the following code works:
dim p,np as picture
p = music.c.pictureField("picture_s").GetPicture //retrieves picture
from database
np = NewPicture(p.width, p.height, screen(0).Depth)
np.Graphics.Drawpicture p, 0, 0, p.width, p.height, 0, 0, p.Width,
p.Height
g.drawpicture tn,5,5
--
Best Regards,
Gary
--
_______________________________________________
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>
|