Convert Picture type bmp into another picture type

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi everybody,

Under MS Access -VBA , I created a picture the 'CreateBitmap API Function'
and now I wonder, whether it is possible to convert this ibitmap picture into
a format .png or .gif

Can anybody help?
Friedi
 
Thank you Douglas,
I am a developer selling my biz solution - so freeware from somewhere is not
a solution. Don't you know any API function able to convert?
 
Try posting to microsoft.public.vb.winapi.graphics

If it can be done through VB, odds are it can also be done through VBA.
 
AFAIK there is no exposed method, via any documented API's, to save a Bitmap
to PNG or GIF. I would search the Net for existing VB code you could use. --

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Hi Doug,
it can be done via VB but it's an unusually complex process when you are
trying to understand an Image file format for the first time. In particular,
there are compression issues to be understood.

I have studied the GIF file spec in detail. It allowed me to produce a
VB/VBA only solution to create Animated Gif's at runtime.Not for the faint
of heart though. I think last year though I came across a very nice VB class
for GIF creation. It's somewhere out there on the Net.

Finally, I am just starting to read up on the PNG format. It appears this is
the favoured type for Images embedded in the new A2007 Attachement field. I
need to add the capability to convert extracted OLE Images to PNG format for
re-embedding in the Attachment field to my OLE Image Extraction solution..

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Hi guys,

Thanks a lot for your comments - meanwhile we found the solution and are
able to convert bmp. - Only thing we didn't achieve is printing it out from
memory - we always have to save the image first.
 
Back
Top