how to use TsgGDIPlusMatrix

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
aby
Posts: 81
Joined: 21 May 2007, 13:02
Location: Turkey

how to use TsgGDIPlusMatrix

Post by aby » 08 Jan 2011, 22:14

Hi,

Maybe I cannot exprress myself, I've asked a question in this forum long time ago on how to translate an entity, without getting any answer.

I encounter by chance the class TsgGDIPlusMatrix. It seems my questions is replied in that class. There are functions like Multiply, Translate, Scale, Rotate, Shear which I was searching for a long time. If these functions are able to translate, rotate or scale an entity, this is what I am looking for.

My question is,

1) Can I use these funnctions for an entity.

2) If yes, Could you give an example on how to use a Translate or Scale or Rotate an element.

Aby

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: how to use TsgGDIPlusMatrix

Post by support » 11 Jan 2011, 17:39

Hello Aby.
TsgGDIPlusMatrix class used for visual rotation of GDI+ graphics. If I'm correct you can use this class for single entity, but if entity's drawing method use GDI+. Please note, CAD Import VCL use GDI+ for few entities only - such as gradient filling or some rasters. We're suppose GDIPlus unit for internal using with CAD Import VCL (it can be removed ever in the future versions). Also you will receive visual rotation, but not transformation of entities' coordinates.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply