OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > CorelDRAW > Macros/Add-ons

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 18-08-2006, 16:18
wangor
Guest
 
Posts: n/a
Default Help with script - cropping bitmap

Hi,

I use CorelDRAW 12, and i'm completly new to it, and to VBA scripts.

I've got a shape named "rect" which stores a rectangle and a shape named "box" which stores a bitmap.

I want to crop away every part of "box" that is out of "rect". In other words - i want to remove part of bitmap "box" that sticks out of rectangle "rect".

I have no idea how to do this, i guess it could be done with
ActiveLayer.FindShape("Rect").Bitmap.Crop
but i have no idea how to set "clipping path".
(quote manual: "The Crop method crops the bitmap to its clipping path.")

My questions are:
How to use Shape.crop() ?
What is and how to set clipping path from VBA script level?
Is there any other way to solve my problem?

I tried to use recording, i cropped the bitmap while doing so, but only code that was generated was comment " 'Recording of this command is not supported"

I'd be very grateful if you could paste some code examples.

Thanks in advance.
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
NEED HELP ON CORELDRAW SCRIPT. FREE PHOTO CALENDAR IF U CAN! johnlfitz CorelDRAW/Corel DESIGNER VBA 8 06-06-2008 23:59
Replacing bitmap color mode xenio CorelDRAW/Corel DESIGNER VBA 2 29-04-2007 04:12
Turning on color calibration in a Corel Script Alien2001 CorelDRAW CS 2 14-07-2005 00:34
VB script to save JPG (photopaint12) tonywong Corel Photo-Paint VBA 2 17-05-2005 09:27
problem with script or macro. Dr Morpheus CorelDRAW/Corel DESIGNER VBA 1 12-02-2004 14:46


All times are GMT -5. The time now is 22:51.


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