Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-02-2006, 12:20 PM
sercan sercan is offline
Senior Member
 
Join Date: Mar 2003
Posts: 231
Default how to read bounding rect of a graphic in clipboaord?

how cud i read the bounding rect from which metafile graphic is currently loaded into clipboard?

thanks for helping...
sercan80@yahoo.com
sercan
Reply With Quote
  #2  
Old 01-02-2006, 10:01 PM
gLes gLes is offline
Senior Member
 
Join Date: Jan 2001
Posts: 2,273
Default RE: how to read bounding rect of a graphic in clipboaord?

You need to load it into a TMetafile object first to see its bounding rectangle

[delphi]uses Clipbrd;

...

var
Metafile: TMetafile;
begin
Metafile := TMetafile.Create;
try
Metafile.LoadFromClipBoardFormat(CF_METAFILEPICT, 0, 0);
{ Here you can access the Metafile object's properties }
finally
Metafile.Free;
end;
end;[/delphi]

gLes
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 12:06 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.