Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GdiPlusX - Images Stretch,Clip,Isometric
Message
From
13/01/2008 19:50:48
 
 
To
12/01/2008 05:16:09
General information
Forum:
Visual FoxPro
Category:
VFPX/Sedna
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01281317
Message ID:
01281504
Views:
10
>Dear All,
>
>I want to render picture in given area (rectangle or region) of ImageCanvas in 3 ways, similar to what VFP image object does with property Stretch ;
>
>0 - Clip
>1 - Stretch
>2 - Isometric
>
>Any help (sample) is greatly appreciated.
>
>TIA
>Sergio

Hi Sergio,

Supposing you have an image object
loImg = .Bitmap.FromFile(getpict())


* 0 - CLIP
This.oGfx.DrawImageUnscaled(loImg, 0, 0)


* 2 - STRETCH
This.oGfx.DrawImage(loImg, This.Rectangle)
or
This.oGfx.DrawImage(loImg, 0, 0, This.WIdth, This.Height)



* 1 - CLIP
This is also very easy...
I have a sample atr work, and I hope to send you tomorrow


Hope this helps for the moment...

Cheers

Cesar
Previous
Reply
Map
View

Click here to load this message in the networking platform