how to use TsgGDIPlusMatrix
Moderators: SDS, support, admin
how to use TsgGDIPlusMatrix
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
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
Re: how to use TsgGDIPlusMatrix
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.
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
Chat support on Skype: cadsofttools.support