Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Brad SanMarie
  Where is Brad SanMarie?
 
 California - United States
 Brad SanMarie
 To: Cesar
  Where is Cesar?
 
 Brazil
 Cesar
 Tags
Subject: RE: Image is distording on Image control
Thread ID: 249196 Message ID: 249225 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Wednesday, December 30, 2009 3:28:24 PM         
   


> > Hello !
> > I have an Image control, say about 333*233 in size. Through GETFILE(), I have selected an
> > Image and displaying it on the Image control.
> > Now, my problem is that, if I select any image file(*.jpeg) of about Dimensions : 1152*864.
> > Due to fitting the picture on comparatively short size Image control, the picture is getting
> > distorted/compressed. The Stretch property of the Image control has been set as
> > '1-isometric'.
> > Can anyone suggest any Ideas about it.
> >
> > Regards
> > Bhandari
>
> Bhandari,
>
> Using GdiPlus rendering you'll obtain better results.
> Just try the following:
>
>
Thisform.Picture1.PictureVal = FILETOSTR("c:\yourimage.jpg")

>
> The trick is to use PictureVal instead of Picture, since it uses a different way to draw the image on the screen.
>
> Hope this helps !
>
> Regards,
>
> Cesar
> My Blog

Cesar, it helped me, thanks.

Atik
"Life lets him who is willing, him who is not, it drags."

ENTIRE THREAD

Image is distording on Image control Posted by JaiPrakash Bhandari @ 12/30/2009 12:12:16 PM
RE: Image is distording on Image control Posted by Cesar @ 12/30/2009 1:39:33 PM
RE: Image is distording on Image control Posted by Atik @ 12/30/2009 3:28:24 PM