BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Workaround TMetafile

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Randy
Guest





PostPosted: Fri Feb 24, 2006 4:05 pm    Post subject: Workaround TMetafile Reply with quote



I'm having a problem with a *.WMF graphic not rendering the same under
BCB6 as it did under BCB3. I've spotted one big difference in vcl source
graphics.pas in the ReadWMFStream procedure. The newer version calls the
win api SetWinMetaFileBits with the bottom right coordinates inserted
into the emf header....BCB3 didn't do that.

I'm looking for the best way to work around this addition and render it
the old way, but I'm not sure of the best way to suppress borlands
impementation. Is it possible to derive a component from TMetaFile and
implement my own ReadWMFStream method? Or would rendering it into a
(bitmap?, memory array?, whatever) using the windows API be a better
approach?

I fumbled around a bit with deriving a component, but when I try to
manipulate existing properties like FImage I get accessibility errors.

Thanks for any help you can offer
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.