Re: Need to save a bitmap in some standard graphics file format
- From: "David Ching" <dc@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 17 Jun 2008 06:53:57 -0700
"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
.
- References:
- Need to save a bitmap in some standard graphics file format
- From: Mike Silva
- Need to save a bitmap in some standard graphics file format
- Prev by Date: Database strings.
- Next by Date: Re: Notification of window creation
- Previous by thread: Re: Need to save a bitmap in some standard graphics file format
- Next by thread: How to identify which window is below my CWnd object?
- Index(es):
Relevant Pages
|