Search found 3 matches

by EchoKo
2014-12-11T08:37:58-07:00
Forum: Users
Topic: GrayscaleType and scaling colors
Replies: 3
Views: 3076

Re: GrayscaleType and scaling colors

I'm using whatever's in Ubuntu's apt-get repositories. Seems like it's a bit out of date. I suppose I should build from source.
by EchoKo
2014-12-11T07:34:57-07:00
Forum: Users
Topic: GrayscaleType and scaling colors
Replies: 3
Views: 3076

Re: GrayscaleType and scaling colors

Update: it looks like moving this line

Code: Select all

  m.type(Magick::GrayscaleType); 
up to right after the image is created makes it work.

Problem resolved.
by EchoKo
2014-12-11T07:27:47-07:00
Forum: Users
Topic: GrayscaleType and scaling colors
Replies: 3
Views: 3076

GrayscaleType and scaling colors

I'm trying to write a PNG with very specific grayscale values. In particular, I want certain pixels to have value, say, 80 (out of 255). The following code writes a PNG that, when inspecting in GIMP, gives the pixels value 20 where I wanted 80. When looking at the bottom part of the image, 80 seems ...