Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GdiPlusX ImageCanvas Draw at nTop,nLeft
Message
De
09/03/2009 14:02:10
 
 
À
09/03/2009 13:16:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01386674
Message ID:
01386708
Vues:
50
>>Dear All,
>>
>>I have noticed that draw method of ImageCanas class now accepts 3rd parameter for oGfx drawing object.
>>This is extremely cool as it alows you to execute drawing from some existing ImageCanvas to any desired
>>graphic context/device.
>>
>>However, problem is that drawing is happening at topleft corner of screen (position 0/0 in pixels)
>>whereas I would like to make it happen at specific position (given rectangle).
>>
>>Is there any possibility (property or method) to offset this drawing to a specific nOffTop,nOffLeft position.
>>
>>Bo, Craig, Cesar anyone ?
>>
>>TIA
>>
>>Sergio
>>
>>
>
>Hi Sergio,
>
>Haven't tried yet, but probably works:
>You can use the xfcGraphics.TranslateTransform Functions
>
>See:
>Graphics.TranslateTransform method
>http://msdn.microsoft.com/en-us/library/system.drawing.graphics.translatetransform(VS.80).aspx
>
>This command changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this Graphics.
>
>So, you could use:
>
>
This.oGfx.TranslateTransform(20, 50) && moves the drawing point to the coordinate ( 20,50 )
>
>
>You may also create your own transformation matrix, and send it to the Graphics object:
>http://msdn.microsoft.com/en-us/library/system.drawing.graphics.transform(VS.80).aspx
>
>
>Hope this helps !

Hi Cesar

Will try. This should be simillar to setting / reseting coordination system like in those rotation samples.

Thks+++
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform