Re: drawing a line



Malcolm said:
"Richard Heathfield" <rjh@xxxxxxxxxxxxxxx> wrote in message
news:3uudnSealLhfbfrYRVnysQ@xxxxxxxxx

[...] The BMP file format is -
er, the BMP file formats are - well-known and quite easy to parse, once
you realise something stupidly obvious (i.e. you can decide to deal
exclusively with 24-bit bitmaps, making your life a trillion times
easier). [...]

It's OK to write 24-bit bitmaps exclusively in these days of infinite hard
drives. However you still need to read the lot, unless you are in control
of whoever uses the program.

Yes, one day I suppose I'll extend my reader to read any bitmap, but for now
it meets my needs, as I am the one who converts the images into bitmap
format in the first place, so I'm careful to use something which knows
(such as the GIMP, or Image-Magick, or - to be fair - almost anything,
nowadays).

Then there is an evil little twist. Microsoft Visual Studio will only
import bitmaps that are upside down. That's right. MS programming dept
can't even parse their own file format.

<shrug> I suppose I could care less, but it's difficult to see how. I am not
attracted to bitmaps because of their (limited) support in Windows, but
because BMP (or at least the subset of it that I choose to acknowledge) is
a nice simple non-lossy file format that's dead easy to read into a frame
buffer for graphical messing about with in ISO C. It's the graphical
messing about in ISO C which interests me, not the peculiarities of
storage. Otherwise I'd be using GIF or JPEG or PNG or something.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
.



Relevant Pages

  • Re: drawing a line
    ... The BMP file format is - er, ... with 24-bit bitmaps, making your life a trillion times easier). ... parse their own file format. ...
    (comp.lang.c)
  • Re: Need to save a bitmap in some standard graphics file format
    ... and I need to then be able to write them in some standard graphics ... file format so they can be imported by typical CD printing software. ... There are no images in these bitmaps, only text, lines and arcs. ... I think it include PNG. ...
    (microsoft.public.vc.mfc)
  • Re: drawing a line
    ... The BMP file format is - ... import bitmaps that are upside down. ... can't even parse their own file format. ...
    (comp.lang.c)
  • Re: Need to save a bitmap in some standard graphics file format
    ... I have bitmaps (they are specialized CD labels) that I construct in a ... There are no images in these bitmaps, only text, lines and arcs. ... the choice of file format depends on what kind of files your label ... a stream of GDI commands (the file contains the actual GDI commands to draw ...
    (microsoft.public.vc.mfc)
  • Re: bitmap to printfile
    ... Do you want to provide the bitmaps as separate files, ... The problem, regardless of the file format, is the difference between ... As a simple test, produce an sample file manually, using WordPad, ... and save it in RTF format. ...
    (comp.lang.pascal.delphi.misc)