Re: Need to save a bitmap in some standard graphics file format

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Mike Silva" <snarflemike@xxxxxxxxx> wrote in message
news:335c9124-80a0-44a8-bfc8-a22f30d7fade@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,

I have bitmaps (they are specialized CD labels) that I construct in a
DC, 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. So I
am looking for an easy, quick way to save these bitmaps to a suitable
file. I was thinking .PNG might be the right choice, but I'm open to
whatever works. This is for an in-house utility so quick and easy is
especially important. Any suggestions on how to proceed? Thanks.


If you've created your images using bitmaps, then already you're stuck with
a pixel format such as .bmp. You could create a more compact .png for
smaller file size, if that would help, but I would guess it really doesn't
matter.

Really, the choice of file format depends on what kind of files your label
maker program accepts. Some programs accept Windows metafile (.wmf) that is
a stream of GDI commands (the file contains the actual GDI commands to draw
the arc, lines, text, etc.) As such, it is very small and compact. (In
fact, I believe this is the format used by Windows Remote Desktop to
represent the contents of the screen on the remote computer.) Windows API
has commands to read/write these WMF files, but I have never used them.

If I were you I would just stick with the bitmaps that you have and write
them out (perhaps using CImage as Mikel suggested).

-- David



.



Relevant Pages

  • 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: 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: 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)
  • 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 ... There are no images in these bitmaps, only text, lines and arcs. ...  I was thinking .PNG might be the right choice, ... I really do have to generate the labels programatically based on ...
    (microsoft.public.vc.mfc)