• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

VB6 - compress a bitmap to png or jpg without any third party dlls?

Appledrop

Platinum Member
edit: solved. had to use GDI+ call - GdipSaveImageToStream function


Hi, I have a very large byte array which represents a bitmap image (if you wrote the byte array out to a file the picture would open properly)
But.. Its too big.. I want to compress the bitmap array into an array containing a jpeg or png image.
Does anyone have any idea how this could be done, without using any external dlls except those included in windows or ocx files?
I was thinking GDI.. But I have no idea how to do this...

anyone got any help please
 
Windows bitmaps are very simple files. PNGs and Jpegs are not.

Why must you avoid external dlls? I seem to recall VB3 was able to interface with external dlls.

 
Originally posted by: Ken g6
Windows bitmaps are very simple files. PNGs and Jpegs are not.

Why must you avoid external dlls? I seem to recall VB3 was able to interface with external dlls.

i mean I dont want to have to distribute seperate files along with the executable :/
Is achieving what I want harder than I thought it should be? Blahh.. 3 meg pictures are no good :brokenheart:
 
Back
Top