Re: [racket] monochrome bitmaps

2012-11-03 Thread Matthew Flatt
A "monochrome" bitmap is just black-and-white. If a grayscale PNG has more colors than black or white, it will be loaded the same way as a color bitmap. At Fri, 2 Nov 2012 22:15:39 -0400, Harry Spier wrote: > To clarify one point: > Is a monochrome bitmap a greyscale bitmap or a black and white bi

Re: [racket] monochrome bitmaps

2012-11-02 Thread Harry Spier
To clarify one point: Is a monochrome bitmap a greyscale bitmap or a black and white bitmap? I see from the documentation that the form (make-object bitmap% bits width height) produces a black and white bitmap but for the form I asked about (shown again below) subject to the restriction Matthew des

Re: [racket] monochrome bitmaps

2012-11-01 Thread Harry Spier
Matthew Flatt wrote: > A monocrhome bitmap doesn't have an alpha channel, but it you ask for > its pixels in `just-alpha?' mode, then while pixels generate a 0 alpha > and black pixels generate a 255 alpha. > Thanks Matthew. What confused me was that for: (send a-dc set-alpha opacity) opacity i

Re: [racket] monochrome bitmaps

2012-11-01 Thread Matthew Flatt
At Wed, 31 Oct 2012 23:06:39 -0400, Harry Spier wrote: > Dear list members, > > I see from the Racket Drawing Toolkit documentation that there are > monochrome bitmaps but I'm not clear from the documentation how to > access and manipulate these monochrome bitmaps. > > Specifically: > 1) If I loa