![]() |
#1
|
|||
|
|||
![]()
Hi, guys.
Sorry for my english. ![]() I'm use Corel 12 and have problem with powerclips. Alex's code (thanks Alex) converts all lenses to bitmaps on the Active.page. Unfortunately bitmap in powerclips change size and position. I don't know why. Code: Quote:
![]() ![]() Please any help. Regards. ~GrzJanik |
#3
|
|||
|
|||
![]()
Thanks Shelby/
How to skip the powerclips? |
#4
|
|||
|
|||
![]()
Maybe instead of skip powerclips, do this:
1. search for shapes (and convert lenses) 2. if found PowerClip - enter edit mode 3. search for shapes (and convert lenses) 4. if there are no lenses - leave edit mode 5. search for shapes (and convert) next 6. and so to the end of the page Then the change will apply to all objects on the page. Is this possible? This is very important for me. Thanks for help. ~GrzJanik Last edited by grzjanik; 10-03-2012 at 10:28. |
#5
|
|||
|
|||
![]()
Maybe some other solution to get the desired effect?
~GrzJanik |
#6
|
||||
|
||||
![]()
Alright, I had a little time to look at this, give this a try. The only issue with this code is that it will not dig into groups.
Code:
Sub ConvertLensesWithTransTest() Dim s As Shape, ss As Shape For Each s In ActivePage.Shapes If Not s.PowerClip Is Nothing Then s.PowerClip.EnterEditMode For Each ss In s.PowerClip.Shapes If Not ss.Effects.LensEffect Is Nothing Then ss.ConvertToBitmapEx cdrCMYKColorImage, True, True, 300, cdrNormalAntiAliasing, True End If Next ss s.PowerClip.LeaveEditMode Else If Not s.Effects.LensEffect Is Nothing Then s.ConvertToBitmapEx cdrCMYKColorImage, True, True, 300, cdrNormalAntiAliasing, True End If End If Next s End Sub -Shelby |
#7
|
|||
|
|||
![]()
Thanks Shelby.
Thats great work! This is code works with groups: Quote:
~GrzJanik PS. When pasting text in the quote my tabs is disappear, why? |
#9
|
|||
|
|||
![]() Code:
Sub Thanks_Shelby() Msgbox "I'll remember." ' :) End Sub ~GrzJanik |
![]() |
Tags |
bitmap, lens, powerclip |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to convert all lenses in document to no lens | gorgo | CorelDRAW/Corel DESIGNER VBA | 2 | 12-01-2012 09:44 |
convert all bitmaps to 16-bit grayscale images | keytecstaff | CorelDRAW/Corel DESIGNER VBA | 3 | 18-12-2008 13:18 |
How open some bitmaps in one CPP? | dizzzy | Macros/Add-ons | 0 | 31-10-2007 12:22 |
Trace Bitmaps | keytecstaff | CorelDRAW/Corel DESIGNER VBA | 5 | 24-05-2006 09:26 |
how can we convert all lenses in document to cmyk bitmap? | olympiatr | CorelDRAW/Corel DESIGNER VBA | 2 | 27-05-2005 04:11 |