Search found 5 matches

by Phantom
2011-04-20T07:01:12-07:00
Forum: MagickWand
Topic: Change color of image in memory and MFC's CBitmap
Replies: 0
Views: 9638

Change color of image in memory and MFC's CBitmap

Hi, I have created a program that can change the color of an image i have. I have used: ConvertImageCommand(image_info,n_ArgumentCount,p_Arguments,(char **) NULL,&exception); This function outputs the converted image to a file on my harddrive. Is it possible to do the conversion in memory (not c...
by Phantom
2011-01-02T11:13:17-07:00
Forum: Users
Topic: change color of bitmap pixels
Replies: 6
Views: 13465

Re: change color of bitmap pixels

Thanks fmw42,

I used

convert inputimage -colorspace gray +level-colors black,"gray(30%)" outputimage

and the result looks fine.

I will study imagemagick some more maybe even buy a book about it, looks interesting.
by Phantom
2011-01-01T11:50:11-07:00
Forum: Users
Topic: change color of bitmap pixels
Replies: 6
Views: 13465

Re: change color of bitmap pixels

Ok, i have seen it done in a program called babaschess (which is free). I guess when the user selects rgb(0,0,0) using the colorpicker dialogbox it does not color with that value but maybe something like rgb(50,50,50). There is no visible difference in the coloring of the pieces when selecting those...
by Phantom
2011-01-01T09:56:47-07:00
Forum: Users
Topic: change color of bitmap pixels
Replies: 6
Views: 13465

Re: change color of bitmap pixels

Yes, i know it works for rgb(255,0,0) thats what i said.
If i use rgb(0,0,0) the entire picture is black thats not what i want i want to see the cross on the bishop.
by Phantom
2011-01-01T09:10:01-07:00
Forum: Users
Topic: change color of bitmap pixels
Replies: 6
Views: 13465

change color of bitmap pixels

Hi, I have a set of .png files which display chess pieces. I want to convert the color of the pieces to any chosen RGB value. (from a colorpicker dialog). I dont know anything about Imagemagick yet, i did read some exampes on color adjustment. I have an example of what i tried on: http://chess.freew...