EMF/WMF capture fonts only in B&W: Bug found and workaround

EMF/WMF capture fonts only in B&W: Bug found and workaround

Post by YWJ1dGFsa » Mon, 18 Oct 2004 15:53:01


Mystery solved...simple bug...the color setting changes accoding to the
default printer used. i.e., if the default printer is colored than the font
keeps its color as its "pasted special" with EMF. if the default printer is
B&W that only the font (but not the background) gets B&W.
Again, this is only when you paste special from excel, not from windows.
pls open a bug for this...
 
 
 

1. how to determine mapping mode while WMF to EMF conversion from WMF stream?please help.

2. EMF to WMF can't conver non-ASCII chars ?

Hi All,
I have wrote some Gdi+ codes to conver a EMF file into a WMF file in
c++.
When I output some text in chinese, the EMF file displays correctly while
the
WMF file displays chinese characters as "???".
Can anyone help me?

The codes:

// Construct a Metafile object from an existing EMF disk file.
Metafile myMetafile(L"E:\\test.emf");
HENHMETAFILE hEmf = myMetafile.GetHENHMETAFILE();
UINT size = Metafile::EmfToWmfBits(hEmf, 0, NULL, MM_ANISOTROPIC,
EmfToWmfBitsFlagsEmbedEmf );
BYTE* buffer = new BYTE[size];

// Convert the EMF records to WMF records.
INT convertedSize = Metafile::EmfToWmfBits( hEmf, size, buffer,
MM_LOMETRIC );

HMETAFILE hmf = SetMetaFileBitsEx(size, buffer);
// Write the WMF metafile to a disk file.
CopyMetaFile(hmf, TEXT("E:\\test.wmf"));

DeleteMetaFile(hmf);
Dele *** hMetaFile(hEmf);
delete[] buffer;


Thanks
LeiChen

3. Placing a bitmap into a wmf/emf file

4. Reg Arabic EMF and WMF Files

5. Importing emf, wmf, eps into powerpoint

6. emf or wmf to pdf

7. INSERT EMF/WMF INTO ARCVIEW WITHOUT WITHOUT WHITE BACKGROUND

8. WMF/EMF to clipboard

9. Making and saving a WMF/EMF

10. "Send To Mail Recipient" does not handle .emf and .wmf files

11. Load wmf/emf Files?

12. importing emf or wmf

13. Free EMF WMF to SVG File Convert Tool

14. Export to WMF/EMF problems

15. FHMX - emf / wmf export results in jaggedy text