Re: load a png file
From: Mike D Sutton (EDais_at_mvps.org)
Date: 11/26/04
- Next message: Jonathan: "Columns in Rich Text Box"
- Previous message: Marcus: "Re: User control & Form copy to other project"
- In reply to: Flex: "load a png file"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 26 Nov 2004 23:09:10 -0000
> What is the best way to open up a PNG file in a PictureBox with a picturebox
> or with a CommonDialogBox.
> I would like to do it without any fancy DLL, Classes or OCX type controls .
> Can you help me, please
It's not a complete solution, however the PNGInfo class on my site demonstrates how to grab the image data from a .PNG file, and the
ZLib article demonstrates how to use the compression library used by the format so it would be a fairly simply task to meld the two
together into something that reads the image data out. Your other option is to look at GDI+ which IIRC has native support for the
image .PNG format, either method requires an additional DLL but since VB can't compile in the ZLib library to it's own executable
you will have to use some DLL file that includes the libraries code.
Hope this helps,
Mike
- Microsoft Visual Basic MVP -
E-Mail: EDais@mvps.org
WWW: http://EDais.mvps.org/
- Next message: Jonathan: "Columns in Rich Text Box"
- Previous message: Marcus: "Re: User control & Form copy to other project"
- In reply to: Flex: "load a png file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|