Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Mike Gagnon
  Where is Mike Gagnon?
 Pointe Claire
 Canada
 Mike Gagnon
 To: Bernard Bout
  Where is Bernard Bout?
 Brisbane
 Australia
 Bernard Bout
 Tags
Subject: RE: PictureVal property of Image Control
Thread ID: 78712 Message ID: 78800 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Saturday, October 08, 2005 12:56:20 PM         
   


1. How to store the the actual image data in the PictureVal propertyThis means you don’t have to refer to a disk file to display the image.



I cannot speak for Craig, but in a sense the statement is true, where if you take the binary data from a file on disk and store it in the pictureval property of the image control, VFP does not need to access the actual image to show it, but accesses the binary data stored in the property instead. This would indicate that you could store the data in the pictureval property and delete the imgage and still be able to show the image on the form. But I believe you still need to load it in the property in the first place, either for an actual image or a blob field, but after that the image controls read from the property.


> Hi Mike
>
> I know how to display a picture. The point was about this from Craig Berntson's blog:
>
> You can use the PictureVal property of an Image object to hold the actual image data. This means you don’t have to refer to a disk file to display the image.
>
> > If you want to have the picture to show up when you run the form, store the binary info of the picture in the PictureVal property at design time.
>
> That's what I'm talking about. My code gets an object instance of the object the mouse is over. GETPICT() does the same as GETFILE() in my case and what is stored in the PictureVal property is "BMX" and the bitmap shows up at design time in the Image object. However on running the form, nothing shows.
>
> My questions are:
> 1. How to store the the actual image data in the PictureVal property
>
> 2. How is it that I don’t have to refer to a disk file to display the image.
>
>
> >
> >
oPict = LOADPICTURE(GETPICT())
> > this.PictureVal = oPict

> >
>
> This code you refer to above is Runtime code. This code WILL access the diskfile at runtime, which is not what Craig says.


ENTIRE THREAD

PictureVal property of Image Control Posted by Bernard Bout @ 10/7/2005 6:04:25 AM
RE: PictureVal property of Image Control Posted by Mike Gagnon @ 10/7/2005 11:38:01 AM
RE: PictureVal property of Image Control Posted by Bernard Bout @ 10/8/2005 6:30:13 AM
RE: PictureVal property of Image Control Posted by Mike Gagnon @ 10/8/2005 12:56:20 PM
RE: PictureVal property of Image Control Posted by Bernard Bout @ 10/10/2005 3:34:55 AM
RE: PictureVal property of Image Control Posted by Mike Gagnon @ 10/10/2005 1:25:23 PM
RE: PictureVal property of Image Control Posted by Bernard Bout @ 10/11/2005 5:22:29 AM
RE: PictureVal property of Image Control Posted by Mike Gagnon @ 10/12/2005 12:57:11 PM
RE: PictureVal property of Image Control Posted by Bernard Bout @ 10/13/2005 5:06:12 AM
RE: PictureVal property of Image Control Posted by Hans de Groot @ 10/13/2005 5:38:10 PM
RE: PictureVal property of Image Control Posted by Bernard Bout @ 10/14/2005 5:41:05 AM
RE: PictureVal property of Image Control Posted by Hans de Groot @ 10/14/2005 8:48:54 AM
RE: PictureVal property of Image Control Posted by mike castillo @ 10/14/2005 7:17:14 PM
RE: PictureVal property of Image Control Posted by Hans de Groot @ 10/15/2005 6:52:52 AM
RE: PictureVal property of Image Control Posted by Bernard Bout @ 10/17/2005 5:10:26 AM