Главная страница | назад





Article #17638: Determining is a canvas is a Metafile Canvas?

 Question and Answer Database
FAQ2638D.txt Determining is a canvas is a Metafile Canvas?
Category :Windows API
Platform :All
Product :All 32 bit
Question:
How can I determine in code if a canvas is a Metafile Canvas?
Answer:
You can check the return value of the Windows API function
GetDeviceCaps() to check if a given dc is used by a Metafile.
Example:
if (GetDeviceCaps(Canvas.Handle, TECHNOLOGY) and
DT_METAFILE) = DT_METAFILE then
IsMetafileDc := True;
7/16/98 4:31:28 PM

Last Modified: 01-SEP-99