OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 07-10-2003, 13:31
Craig Tucker
Posts: n/a
Default Import image into bounding box

I have a bounding box (bb) that I import images into. Problem is that when I import a landscape image into the (bb), there is space between the image and the top (or bottom) of the (bb). The good news is that it does not skew the image to the (bb).
Question is; is there a way to "TopJustify" or "BottomJustify" the image in the (bb)?
Thanks much,
Reply With Quote
Old 07-10-2003, 18:50
Alex's Avatar
Alex Alex is offline
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default Re: Import image into bounding box


I assume you use Shape.SetBoundingBox method. It ensures that the shape is scaled to fit the specified rectangle. However there are several ways to do this. By default, it places the shape in the middle of the specified rectangle.

However the last parameter allows you to specify the placement of the shape within the rectangle. For example:

ActiveShape.SetBoundingBox x, y, sx, sy, True, cdrBottomMiddle
This will place the shape in the bottom of the bounding rectangle.

I hope this helps.
Reply With Quote
Old 07-10-2003, 20:06
Craig Tucker
Posts: n/a
Default Bounding Box Import Alignment

Hi Alex,
Thanks again! I stepped right into that one. Didn't even look at my code this time assuming there was no easy solution (which I had cdrCenter). That was exactly what I needed, sorry for not first checking.
Thanks much,
Reply With Quote

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 picture location RVogel CorelDRAW/Corel DESIGNER VBA 0 31-03-2005 12:05
Apply Outline - Scale with Image geopig CorelDRAW/Corel DESIGNER VBA 4 06-05-2004 07:23
Population of Image Box ddonnahoe CorelDRAW/Corel DESIGNER VBA 10 10-02-2004 13:20
How to kill (do not show) Import Postscript filter, rrrrrr modzho CorelDRAW/Corel DESIGNER VBA 1 18-09-2003 10:56
Bounding with Outline Hernán CorelDRAW/Corel DESIGNER VBA 1 31-07-2003 13:43

All times are GMT -5. The time now is 17:55.

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