Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display an Photo image.
Message
From
28/04/1997 21:28:39
Arnold Lee
K&A International Co.,Ltd
Hong Kong, Hong Kong
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00029749
Message ID:
00030018
Views:
50
>>>>>Please let me know if it's possible or not.
>>>>>
>>>>>I want to display an Photo-image within my Form.
>>>>>I put OLE bound control in the Form and tried to use append general command to insert an picture.
>>>>>I simply embedded an *.bmp file and ran the Form,
>>>>>but the Image was too small and File name was written under it.
>>>>>I changed the stretch property in three ways but the resolution of the image was terrible and the file name
>>>>>was still written.
>>>>>any better Idea to solve this problem?
>>>>>In addition,
>>>>>Is there any way to display *.jpg image rather than *.bmp when you're using a general field?
>>>>
>>>>Yes, it is possible to display Jpg files from foxpro, but you need a OCX for that. there are few websites you can try :-
>>>>
>>>>www.leadtools.com
>>>>
>>>>Check out the previous discussions, which we had on JPG.
>>>Thanks for your reply.
>>>Finally you gave me the answer.
>>>Cause I'm not a premier member I can't check it out.
>>>but I'll check out the site you said.
>>>
>>>Thanks again.
>>
>>You may try Imaging for Windows 95.It's work nice with VFP ,the site also provides developer information.
>>
>>http://www.eastmansoftware.com/imaging/
>
>I'd like to display an image in my form with the Imaging for windows 95.
>I've down loaded it but still it's a little difficult for me to use,
>Cause This is my first time to use Active X control.
>I've put some *.jpg images into the general field that I made using append general command.
>And then, put an OLE Bound Control in my form , And I lost my way!
>I don't want to bother you but could you give me an simple example or brief explanation?

In my practice,image files are individual file rather than saved in General field of VFP.For 3 reasons.
- Saves disk space
- Minimize the risk of file corrupt of FPT file as file getting bigger
- I don't need in place editing of OLE

OK,back to your question.
You first place ImageEdit control in the form

THISFORM.ImageEdit.IMAGE = "Your file name here"
THISFORM.ImageEdit.FITTO(0)
THISFORM.ImageEdit.DISAPLY
THISFORM.ImageEdit.REFRESH

I recommend using Windows NT be your operating system to handling tones of Image file.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform