How do I get the export size of a png to be exported? Corel Draw X8 in VBscript.

I have made a VB application that has the ability to set the dimensions of the image (visible layers) being exported. However, I want the user to be able to know the starting size before modification. How do I get the exact size of the PNG to be exported?

Thank you Sean

Parents
No Data
Reply
  • One way might be to:

    1. Define a ShapeRange that contains all of the content to be exported.
    2. Duplicate that ShapeRange.
    3. Convert that duplicate ShapeRange to a bitmap, e.g., using ShapeRange.ConvertToBitmapEx
    4. Get the dimensions of that bitmap.
    5. Delete the bitmap just created.
Children
No Data