VB script in photo shop, error when changine modes to bitmap from grayscale

K
Posted By
knowledgeforeveryone
Sep 2, 2003
Views
292
Replies
1
Status
Closed
i feel that i am alone in this world!!! i am trying to make simple program in VB to convert from grayscale mode to bitmap mode in Photoshop , but i am getting an error. I use to the same code to covert from/to ( cmyk, grayscale…)everything works fine , but when i try to go from grayscale to bitmap, i am getting this

" The argument is not valid "

works fines : docRef.ChangeMode (psConvertToGrayscale)

cause an error : docRef.ChangeMode (psConvertToBitmap)

Help .. thanks

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

WS
Warren Sarle
Sep 3, 2003
The usual work-around for bugs like this is to use the Scripting Listener. Be warned, however, that I can’t turn the Scripting Listener off, which is a nuisance.

"Knowledge hungry" wrote in message
i feel that i am alone in this world!!! i am trying to make simple program in VB to convert from grayscale mode to bitmap mode in Photoshop , but i am getting an error. I use to the same code to covert from/to ( cmyk, grayscale…)everything works fine , but when i try to go from grayscale to bitmap, i am getting this

" The argument is not valid "

works fines : docRef.ChangeMode (psConvertToGrayscale)
cause an error : docRef.ChangeMode (psConvertToBitmap)

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

Related Discussion Topics

Nice and short text about related topics in discussion sections