Rotate Metafile

Please discuss general Delphi programming topics here.

Rotate Metafile

Postby DerDelphianer » November 9th, 2006, 2:39 pm

Hi all,

I am new with this topic. I ve read many things about MetafileRecords and words like PlayEnhMetafileRecord and so on. I have had read also the Unit EMFRecordTransform.pas from Kambiz.You need many expirience to understand it :oops: Have somebody a examble how can i rotate a metafile in angle like 30 Degree?

I want read a EMF-File. rotate step by 45 degree and save it again.

MfG
DerDelphianer
Member
Member
 
Posts: 1
Joined: November 9th, 2006, 1:31 pm

Postby Kambiz » November 13th, 2006, 9:00 am

Have a look at SetWorldTransform Windows API. Use this API to set rotation matrix on a metafile canvas and draw your metafile on it.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 17 guests

cron