:confused: Can you help me?
Posted on 2002-02-03 20:16:32 by Dikencon

i thing best example and lib :


orjinal comment from loacation:

"A totally free library that enables you to use the GIF file format in your assembly programs. This library is focussed on win32asm programmers that use MASM. Your file will only grow about 2kb when using the library, it is fully written in asm, and it has the ability to read from files or resources to a bitmap output. 2 examples are included, as well as the manual and quick start tutorial. Full source is included!"

have nice day,
Posted on 2002-02-03 20:22:28 by CYDONIA
I did a tutorial on how to use the picture object to load a jpg.

It uses some COM stuff, but you can cookbook that part.
Posted on 2002-02-03 20:23:05 by Ernie
Other best examples and tutors : Ernie' s "how to use the picture object to load a jpg" stuff.

thanks Ernie

Posted on 2002-02-03 20:27:54 by CYDONIA
GIF is the way to go if you have 256color images with lot of repeating
sequences. It's pretty useless for "photorealistic" images though.

COM stuff? Hrm, I still find that a bit icky :). Also, can you be sure
the needed COMponent is on the target system? I see an attitude
in VB coding where people just use whathever components they
can find, because it's so easy...

If you want a "real" way to handle JPEGs, look for promethee's
jpeg library. Unfortunately it doesn't include source, and I promethee
disappeared from IRC some time ago...
Posted on 2002-02-03 21:25:29 by f0dder
As the JPG file Resource in the file.
Require how many Bytes in program?
Posted on 2002-02-03 21:43:14 by Dikencon
I cna't remember the size of promethees JPEG library, but it's most
likely more than 2kb ;). There's somewhat more code involved. If
filesize is (very) important to you and GIF encoding doesn't work for, give the COM approach a go.
Posted on 2002-02-03 21:49:43 by f0dder
The LoadPicture API is part of the Windows operating system.

If your computer lacks this component, you're in the wrong forum.
Posted on 2002-02-03 23:26:45 by Ernie
Ernie, can you be sure LoadPicture supports JPEG on all windows
versions? I mean, jpeg support (and GradientFill and whatnot)
didn't appear until win98/win2000 ...

The only documentation in PlatformSDK on LoadPicture I could find
is in "Visual Basic Scripting Edition", and there's not exactly much
information there :).
Posted on 2002-02-04 08:43:00 by f0dder
Maybe Ernie was talking about OleLoadPicturePath.

Windows NT/2000/XP: Requires Windows NT 4.0 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in olectl.h.
Library: Included as a resource in olepro32.dll.
Posted on 2002-02-04 08:49:02 by JCP
If I remember correctly, you can use a list view (without colums :grin: ) and set a background image using LVM_SETBKIMAGE. The image can be either a BMP, a GIF or a JPEG.
Posted on 2002-02-04 12:17:19 by LuHa
It would be a very nice trick. ;)

MSDN says:
Because the list-view control uses OLE COM to manipulate the background images, the calling application must call CoInitialize or OleInitialize before sending this message. It is best to call one of these functions when the application is initialized and call either CoUninitialize or OleUninitialize when the application is terminating.
Posted on 2002-02-04 12:28:08 by JCP