Upgrade from 6.5.3 to 6.8.0 resulst in identifier not found

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Bob Freeman
Posts: 1
Joined: 2012-12-16T11:31:15-07:00
Authentication code: 6789

Upgrade from 6.5.3 to 6.8.0 resulst in identifier not found

Post by Bob Freeman »

Hello , when I compiled the new source and moved it into my project , I get ScaleCharToQuantum 'identifier not found' in this bit of code.....

for (x=0; x < colCount; x++){
q->red=ScaleCharToQuantum(pBits->rgbRed);
q->green=ScaleCharToQuantum(pBits->rgbGreen);
q->blue=ScaleCharToQuantum(pBits->rgbBlue);
q->opacity=OpaqueOpacity;
pBits++;
q++;
}


any suggestions? many thanks if so
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Upgrade from 6.5.3 to 6.8.0 resulst in identifier not fo

Post by magick »

ScaleCharToQuantum() is a private method found in magick/quantum-private.h.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Upgrade from 6.5.3 to 6.8.0 resulst in identifier not fo

Post by anthony »

Private methods should not be used outside the library. They are not API functions.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply