Hello,
I thing there maybe an issue with TeeCreateMetafile when display scaling is enabled. The attached metafile was created with screen resolution set to 3200x1800 and scaling 150%. Anyone else noticed that behavior? (TeeCreateBitmap works ok)
Regards
Possible issue with TeecreateMetafile
Possible issue with TeecreateMetafile
- Attachments
-
- test.zip
- (20.29 KiB) Downloaded 1097 times
Re: Possible issue with TeecreateMetafile
Attached is the sample code I used to create the wmf and bmp. When setting the resolution to a high one and scaling is larger than 100% then the wmf is not exported correctly
- Attachments
-
- Test Project.zip
- (5.54 KiB) Downloaded 1079 times
Re: Possible issue with TeecreateMetafile
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Possible issue with TeecreateMetafile
Hello Yeray,
Apparently yes, thank you for the information!
Regards
Apparently yes, thank you for the information!
Regards
Re: Possible issue with TeecreateMetafile
Ok, it looks like that I cannot make the app create the "correct" size metafile unless I have the Enable High-DPI checked in the Project->Option->Application section. I was looking for a solution for the metafile issue when the High-DPI is unchecked ... maybe there is a work around?
Regards
Regards
Re: Possible issue with TeecreateMetafile
Hello,
None that I know (other than using a custom manifest with "dpiAware" set to true)johnnix wrote:maybe there is a work around?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Possible issue with TeecreateMetafile
Hello Yeray,
There is a work around, you need to set the metafile MMWidth and MMHeight properties, I modified the TeeCreateMetafile to do so (resulting metafile looks great) but there is an issue on how to get the custom system scaling value (remember I need not to enable the dpi-aware feature).
Regards
There is a work around, you need to set the metafile MMWidth and MMHeight properties, I modified the TeeCreateMetafile to do so (resulting metafile looks great) but there is an issue on how to get the custom system scaling value (remember I need not to enable the dpi-aware feature).
Regards