OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26-08-2010, 15:30
lohmac
Guest
 
Posts: n/a
Default How to calculate image height/width when export to image?

Hi, all,

Sometimes we might insert shapes outside the range of the page, I would include them when exported to image, in this case , how to calculate the image height and width value?

Thanks,

Lohmac
Reply With Quote
  #2  
Old 28-08-2010, 23:43
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,770
Blog Entries: 10
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Image Height / Width

You can select all the shapes and get the bounding box size. This will give you the height and width.
Code:
Sub GetMySizes()
    Dim sr As ShapeRange
    Dim x As Double, y As Double, w As Double, h As Double
    
    Set sr = ActivePage.Shapes.All
    sr.GetBoundingBox x, y, w, h
    
    MsgBox "w: " & w & ", h: " & h
End Sub
-Shelby
Reply With Quote
  #3  
Old 29-08-2010, 10:07
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

Hi.
Also see this thread.

http://forum.oberonplace.com/showthread.php?t=6605&highlight=export


-John
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image converter Douginala General 4 11-06-2009 10:59
How do I get Text Width and Height in TextOnPath ljesus7 CorelDRAW/Corel DESIGNER VBA 0 15-03-2009 21:28
How do I get font width and height? ljesus7 CorelDRAW/Corel DESIGNER VBA 1 14-03-2009 01:31
get the OrigSelection's width and height zxy050 CorelDRAW/Corel DESIGNER VBA 2 28-12-2007 04:48
Population of Image Box ddonnahoe CorelDRAW/Corel DESIGNER VBA 10 10-02-2004 13:20


All times are GMT -5. The time now is 07:11.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com