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 30-04-2011, 11:48
knowbodynow knowbodynow is offline
Senior Member
 
Join Date: Mar 2006
Location: Hatsukaichi near Hiroshima
Posts: 430
Default Automate Exort to PNG with transparency

Manually exporting a selected object allows the user to set a transparent background. Is there anyway to do that with X5 when exporting to PNG automatically? Thanks.
Reply With Quote
  #2  
Old 02-05-2011, 08:34
ddonnahoe's Avatar
ddonnahoe ddonnahoe is offline
Senior Member
 
Join Date: Jan 2004
Location: Louisville, KY
Posts: 552
Send a message via ICQ to ddonnahoe Send a message via AIM to ddonnahoe Send a message via MSN to ddonnahoe Send a message via Yahoo to ddonnahoe
Default

Check the help file for "Document.ExportBitmap". It supports transparency.
__________________
Sean
Waiting for a ride in the T.A.R.D.I.S.
Reply With Quote
  #3  
Old 04-05-2011, 07:38
knowbodynow knowbodynow is offline
Senior Member
 
Join Date: Mar 2006
Location: Hatsukaichi near Hiroshima
Posts: 430
Default

Hi Sean,

I looked at that but found no way to make it work with PNG and transparency. The example in the help file mentions JPEG. I tried changing values to PNG but when I try to add a value for transparency I start getting errors. Have you been able to make it work?

Thanks,

Chris
Reply With Quote
  #4  
Old 04-05-2011, 09:17
ddonnahoe's Avatar
ddonnahoe ddonnahoe is offline
Senior Member
 
Join Date: Jan 2004
Location: Louisville, KY
Posts: 552
Send a message via ICQ to ddonnahoe Send a message via AIM to ddonnahoe Send a message via MSN to ddonnahoe Send a message via Yahoo to ddonnahoe
Default

Chris, I am attaching a macro that Os built that shows how it's done. It works if you select PNG and TIFF: Transparent Back options. Put a breakpoint at btnEport_click sub and step through it to see what it does.
Attached Files
File Type: zip wx_ExportJPG.zip (57.2 KB, 208 views)
__________________
Sean
Waiting for a ride in the T.A.R.D.I.S.
Reply With Quote
  #5  
Old 04-05-2011, 11:50
knowbodynow knowbodynow is offline
Senior Member
 
Join Date: Mar 2006
Location: Hatsukaichi near Hiroshima
Posts: 430
Default

Thanks, Sean. I managed to export a png file, but when I try to open it up in Photopaint I get an error message about invalid headers. The file looks transparent on the desktop but if I bring it into Sony Vegas it isn't. Any idea what I'm missing? Thanks again,

Chris
Reply With Quote
  #6  
Old 04-05-2011, 21:22
knowbodynow knowbodynow is offline
Senior Member
 
Join Date: Mar 2006
Location: Hatsukaichi near Hiroshima
Posts: 430
Default

Hi again, I'm approaching this from a differnt angle. Now I7m trying to modify Os's file. One thing I can't work out is how it is storing the list of accessed folders. That bit seems buggy to me as the file browser doesn't seem to work. Does it work for you? Thanks,

Chris
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
Automate drawing my own objects vratis CorelDRAW/Corel DESIGNER VBA 2 07-01-2009 07:10
How to automate color transparence? annedeblois Corel Photo-Paint VBA 7 06-10-2005 12:52
Transparency Problem. freerangequark General 2 01-06-2005 16:13
Automate printing hernux CorelDRAW/Corel DESIGNER VBA 0 31-03-2005 22:39
Icon’s Transparency Hernán CorelDRAW/Corel DESIGNER VBA 0 29-07-2003 20:04


All times are GMT -5. The time now is 19:39.


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