🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #1975

Why does not update color?

#1975
From: Barbu_Bogdan
Date: Fri, 02 Jul 2004 15:18
29 lines
1422 bytes
Hello!
I tried to create a new ADMImageRef and fill it with some color. The code is:

ADMImageRef GetImage(int width, int height)
{
   ASPoint pixelPoint;
   ASRGBColor color;

ADMImageRef imageRef = sADMImage->CreateBitmap(width,height);

sADMImage->BeginBaseAddressAccess(imageRef);
   for (long i=0; i<width;i++) for(long j=0;j<height;j++) {

pixelPoint.v=i;
     pixelPoint.h=j;

color.red = 100;
     color.blue = 100;
     color.green = 100;

sADMImage->SetPixel(ImageRef , &pixelPoint, &color);
   }

sADMImage->EndBaseAddressAccess(ImageRef);
  return ImageRef;
}

But the problem is that it never displey corrected. Actually the pixel are not updated. (in the debug mode the pixels have (0,0,0) color and not (100, 100, 100) as it should be).
Does anyone know how to do it?
Technical Details
Message-ID: <3bb4e219.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,7b6689a9db9beab9,start
X-Google-Attributes: gidf5839,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Barbu_Bogdan@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.photoshop.scripting
Subject: Why does not update color?
Message-ID: <3bb4e219.-1@webx.la2eafNXanI>
Date: Fri, 2 Jul 2004 08:18:34 -0700
Lines: 34
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit