Corel VBA

vb6 Poland
  • 19 years ago

    Hi guys!


    The next question:


    Anyone here knows how to make the impossible possible? Then here's one for you:


    In VBA for Corel Draw 9.0 there's no such function as to get the surface of an object... I can just get the Object.BoundingBox property, and then calculate the surface of the boundingbox. That's excellent if my drawing would have only non-rotated rectangles...


    But how to calculate a closed vector with like 16 points?


    I already thought of exporting the shape to a 2-color bitmap and then count the white and black bits... The % of black would give me the % of the boundingbox the shape has... It should be easier though...


    Regards,


    Thamar

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.” - Rick Osborne