:confused: Can you help me?
Thanx!
Thanx!
hi,
i thing best example and lib :
http://www.madwizard.org/view.php?page=downloads
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,
i thing best example and lib :
http://www.madwizard.org/view.php?page=downloads
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,
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.
It uses some COM stuff, but you can cookbook that part.
Yes!
Other best examples and tutors : Ernie' s "how to use the picture object to load a jpg" stuff.
thanks Ernie
:alright:
Other best examples and tutors : Ernie' s "how to use the picture object to load a jpg" stuff.
thanks Ernie
:alright:
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...
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...
As the JPG file Resource in the file.
Require how many Bytes in program?
Require how many Bytes in program?
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.
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.
The LoadPicture API is part of the Windows operating system.
If your computer lacks this component, you're in the wrong forum.
If your computer lacks this component, you're in the wrong forum.
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 :).
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 :).
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.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in olectl.h.
Library: Included as a resource in olepro32.dll.
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.
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.
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.