From: Mark Hahn Date: 2001-11-24T04:57:51+09:00 Subject: [ruby-talk:26250] Re: bitmap in ruby-fltk? > Drawable::point allows you to draw single dots at a time But only in 256 colors, not rgb. It is rgb painting that I am totally stuck on. I was coding a slow xbm display routine in pure ruby (pretty easy) until I dicovered this limitation. I could do slow xpm with 256 colors easily, but now I'm working on adding fltk classes to ruby-fltk instead. To answer your question, my first priority is getting arbitrary rgb values up on the screen. My second priority is getting all fltk image support going. Right now I am stuck getting ruby.h to work in VisualC (I know that is a stupid thing to be stuck on, but I'm not a VisualC expert). I was able to compile fltk itself in VisualC. -----Original Message----- From: Kevin Smith [mailto:kevinbsmith@yahoo.com] Sent: Friday, November 23, 2001 9:42 AM To: ruby-talk ML Subject: [ruby-talk:26241] Re: bitmap in ruby-fltk? --- Mark Hahn wrote: > Is there any way to draw bitmaps in ruby-fltk? FLTK > itelf has the objects Bitmap, Pixmap, and Image but > these seem to be missing from Ruby-fltk. Do you know which of these would be most important to you? Or could you live with whichever is easiest to add? Generally adding Ruby-FLTK support for additional FLTK classes is pretty easy. The exception is when the underlying FLTK objects have unusual memory management issues. One or more of these may fall into that category (I haven't checked yet). > I cannot figure out how to do any aribtrary drawing of > pixel values at all. Drawable::point allows you to draw single dots at a time. Obviously this would be slow if you are doing much drawing, but it might be a temporary workaround. Kevin __________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1