Article View: adobe.photoshop.scripting
Article #1936Re: VB: Can I adjust brightness and contrast in code?
From: Mick_Murphy
Date: Fri, 09 Jul 2004 08:55
Date: Fri, 09 Jul 2004 08:55
8 lines
1138 bytes
1138 bytes
Yep. I should have said I was using .NET but the first post was just a little snippet and I assumed you would translate it if you needed to. Leaving out the parentheses would have worked. Interestingly, there seems to be an important difference between .NET and earlier VB in activating a layer. In .NET, it has to be along the lines of doc.ActiveLayer = theLayer instead of set theLayer = doc.ActiveLayer In other words, the assignment is in the opposite direction (nothing to do with the set statement).
Technical Details
Message-ID:
<3bb4d6fb.6@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!newsfeed.arcor.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<3bb4d6fb.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,22a610ff7752a142 X-Google-Attributes: gidf5839,public X-Google-Language: ENGLISH,ASCII-7-bit From: Mick_Murphy@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!newsfeed.arcor.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.photoshop.scripting Subject: Re: VB: Can I adjust brightness and contrast in code? Message-ID: <3bb4d6fb.6@webx.la2eafNXanI> Date: Fri, 9 Jul 2004 01:55:18 -0700 References: <3bb4d6fb.-1@webx.la2eafNXanI> Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit