Search found 3 matches

by scar12
2016-10-05T05:49:18-07:00
Forum: Windows COM+ & Visual Basic
Topic: VBA get transparency
Replies: 4
Views: 64284

Re: VBA get transparency

Sorry, I made a mistake copying the code from my VB editor to the forum, and forgot to type "" before %[fx:mean]"". Actually, my code was : cmdLine = """C:\Program files\ImageMagick-7.0.3-Q16\convert.exe"" C:\image.png -alpha on -alpha extract -format &qu...
by scar12
2016-10-05T04:17:21-07:00
Forum: Windows COM+ & Visual Basic
Topic: VBA get transparency
Replies: 4
Views: 64284

Re: VBA get transparency

You're right, thank you for your answer. I actually have to put double quotes here : ""%[fx:mean]"" But it works only if I use DOS path for convert.exe. E.g. : cmdLine = "C:\Progra~1\ImageMagick-7.0.3-Q16\convert.exe image.png -alpha on -alpha extract -format ""%[f...
by scar12
2016-10-04T05:35:44-07:00
Forum: Windows COM+ & Visual Basic
Topic: VBA get transparency
Replies: 4
Views: 64284

VBA get transparency

I’ve been struggling for several days with an issue. I’ve read a lot of forum posts but didn’t find any solution for the moment. I’m programming on VBA. I want to know wether an image has transparency (i.e. alpha channel present and transparent pixels). I use the IM command proposed here http://www....