Convert Picture type bmp into another picture type

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
 
G

Guest

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?
 
D

Douglas J. Steele

Try posting to microsoft.public.vb.winapi.graphics

If it can be done through VB, odds are it can also be done through VBA.
 
S

Stephen Lebans

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.
 
S

Stephen Lebans

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.
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top