1. Win32Lib & Bitmaps or maybe GIF's
- Posted by Euman <euman at BELLSOUTH.NET> Jan 17, 2001
- 504 views
------=_NextPart_000_0009_01C08094.70070FC0 charset="iso-8859-1" Hello Fellow Coders, I was wondering if anyone has researched the ability to bitBlt and transBlt GIF files (if possible)? I am pretty sure that to use the GIF file Format you would need a liscence. Am I right? I am extensively useing bitmaps and have found that over time (to include these bitmaps with my program) the expense of HD space = is too great. Does anyone have an alternative to oversized images other than zip archives? If I were to use JPEG what if any restictions would apply? Is it possible to use this format with Win32Lib? I want to shave some bytes by-way-of graphics and need some ideas. I cant use Euphoria bitmaps because of the limitation of being only 256 color depth (8 bit) Thanks in Advance all ! \ euman at bellsouth.net ------=_NextPart_000_0009_01C08094.70070FC0 charset="iso-8859-1" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hello Fellow Coders,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I was wondering if anyone has = researched the=20 ability</FONT></DIV> <DIV><FONT face=3DArial size=3D2>to bitBlt and transBlt GIF files = (if=20 possible)?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I am pretty sure that to use the GIF = file Format=20 you</FONT></DIV> <DIV><FONT face=3DArial size=3D2>would need a liscence. Am I = right?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I am extensively useing bitmaps and = have found that=20 over</FONT></DIV> <DIV><FONT face=3DArial size=3D2>time (to include these bitmaps with my = program) the=20 expense of HD space is too great.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Does anyone have an </FONT><FONT = face=3DArial=20 size=3D2>alternative to oversized images</FONT></DIV> <DIV><FONT face=3DArial size=3D2>other than zip archives?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>If I were to use JPEG what if any = restictions would=20 apply?</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Is it possible to use this format with=20 Win32Lib?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I want to shave some bytes by-way-of = graphics and=20 need</FONT></DIV> <DIV><FONT face=3DArial size=3D2>some ideas.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I cant use Euphoria bitmaps because of = the=20 limitation</FONT></DIV> <DIV><FONT face=3DArial size=3D2>of being only 256 color depth (8 = bit)</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks in Advance all !</FONT></DIV> <DIV><FONT face=3DArial size=3D2>\</FONT></DIV> <DIV><FONT face=3DArial size=3D2><A=20 <DIV><FONT face=3DArial size=3D2></FONT> </DIV> ------=_NextPart_000_0009_01C08094.70070FC0--
2. Re: Win32Lib & Bitmaps or maybe GIF's
- Posted by Euman <euman at BELLSOUTH.NET> Jan 17, 2001
- 477 views
------=_NextPart_000_0008_01C08095.8C421F80 charset="iso-8859-1" P.S Even compression useing Run-Time Length encodeing of the bitmaps, the = bmp's are too large. eum ----- Original Message -----=20 From: Euman=20 To: EUPHORIA at LISTSERV.MUOHIO.EDU=20 Sent: Wednesday, January 17, 2001 14:47 Subject: Win32Lib & Bitmaps or maybe GIF's Hello Fellow Coders, I was wondering if anyone has researched the ability to bitBlt and transBlt GIF files (if possible)? I am pretty sure that to use the GIF file Format you would need a liscence. Am I right? I am extensively useing bitmaps and have found that over time (to include these bitmaps with my program) the expense of HD = space is too great. Does anyone have an alternative to oversized images other than zip archives? If I were to use JPEG what if any restictions would apply? Is it possible to use this format with Win32Lib? I want to shave some bytes by-way-of graphics and need some ideas. I cant use Euphoria bitmaps because of the limitation of being only 256 color depth (8 bit) Thanks in Advance all ! \ euman at bellsouth.net ------=_NextPart_000_0008_01C08095.8C421F80 charset="iso-8859-1" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>P.S</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Even compression useing Run-Time Length = encodeing=20 of the bitmaps, the bmp's are too large.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>eum</FONT></DIV> <BLOCKQUOTE dir=3Dltr=20 style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; = BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV> <DIV=20 style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: = black"><B>From:</B>=20 <A title=3Deuman at BELLSOUTH.NET = href=3D"mailto:euman at BELLSOUTH.NET">Euman</A>=20 </DIV> <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A = title=3DEUPHORIA at LISTSERV.MUOHIO.EDU=20 = </A>=20 </DIV> <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, January 17, = 2001=20 14:47</DIV> <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Win32Lib & Bitmaps = or maybe=20 GIF's</DIV> <DIV><BR></DIV> <DIV><FONT face=3DArial size=3D2>Hello Fellow Coders,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I was wondering if anyone has = researched the=20 ability</FONT></DIV> <DIV><FONT face=3DArial size=3D2>to bitBlt and transBlt GIF files = (if=20 possible)?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I am pretty sure that to use the GIF = file Format=20 you</FONT></DIV> <DIV><FONT face=3DArial size=3D2>would need a liscence. Am I = right?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I am extensively useing bitmaps and = have found=20 that over</FONT></DIV> <DIV><FONT face=3DArial size=3D2>time (to include these bitmaps with = my program)=20 the expense of HD space is too great.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Does anyone have an </FONT><FONT = face=3DArial=20 size=3D2>alternative to oversized images</FONT></DIV> <DIV><FONT face=3DArial size=3D2>other than zip archives?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>If I were to use JPEG what if any = restictions=20 would apply?</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Is it possible to use this format = with=20 Win32Lib?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I want to shave some bytes by-way-of = graphics and=20 need</FONT></DIV> <DIV><FONT face=3DArial size=3D2>some ideas.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I cant use Euphoria bitmaps because = of the=20 limitation</FONT></DIV> <DIV><FONT face=3DArial size=3D2>of being only 256 color depth (8=20 bit)</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks in Advance all !</FONT></DIV> <DIV><FONT face=3DArial size=3D2>\</FONT></DIV> <DIV><FONT face=3DArial size=3D2><A=20 = <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial = ------=_NextPart_000_0008_01C08095.8C421F80--
3. Re: Win32Lib & Bitmaps or maybe GIF's
- Posted by Brian Broker <bkb at CNW.COM> Jan 17, 2001
- 500 views
- Last edited Jan 18, 2001
On Wed, 17 Jan 2001 14:47:38 -0500, Euman wrote: >Hello Fellow Coders, > >I was wondering if anyone has researched the ability >to bitBlt and transBlt GIF files (if possible)? > >I am pretty sure that to use the GIF file Format you >would need a liscence. Am I right? > >I am extensively useing bitmaps and have found that over >time (to include these bitmaps with my program) the expense of HD space is too great. > >Does anyone have an alternative to oversized images >other than zip archives? > >If I were to use JPEG what if any restictions would apply? >Is it possible to use this format with Win32Lib? > >I want to shave some bytes by-way-of graphics and need >some ideas. > >I cant use Euphoria bitmaps because of the limitation >of being only 256 color depth (8 bit) > >Thanks in Advance all ! >\ >euman at bellsouth.net I think that the Portable Network Graphic (PNG) format is a great alternative to GIF. It is a lossless format (JPEG loses info with more compression), it has good compression (using zlib) and does more than 256 colors (a limitation of the GIF format). At one point I started wrapping libraries for JPEG and/or PNG support for Win32Lib but like most of my projects, I lose interest or free time before completing the task. I'll see about finishing up the PNG lib since I am more interested in the format.... For more info on PNG see http://www.libpng.org/pub/png/ and for a library see http://www.libpng.org/pub/png/libpng.html -- Brian
4. Re: Win32Lib & Bitmaps or maybe GIF's
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Jan 17, 2001
- 481 views
- Last edited Jan 18, 2001
> Hello Fellow Coders, Hi! > I was wondering if anyone has researched the ability > to bitBlt and transBlt GIF files (if possible)? You'd need to convert the GIF file to a windows bitmap as you load it, there are some library's to do this (by Mike Carroll and Michael Bolin) in the archive: > I am pretty sure that to use the GIF file Format you > would need a liscence. Am I right? Only if you want to output to GIF format, it's free if you just read them in > I am extensively useing bitmaps and have found that over > time (to include these bitmaps with my program) the expense of HD space is too > great. > Does anyone have an alternative to oversized images > other than zip archives? GIF files and JPEG's ;) > If I were to use JPEG what if any restictions would apply? > Is it possible to use this format with Win32Lib? No restrictions, JPEG is totally open, not sure how you load JPEG files though > I want to shave some bytes by-way-of graphics and need > some ideas. > I cant use Euphoria bitmaps because of the limitation > of being only 256 color depth (8 bit) GIF's are also limited to 8 bit > Thanks in Advance all ! > \ > euman at bellsouth.net Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/ Please leave quoted text in place when replying
5. Re: Win32Lib & Bitmaps or maybe GIF's
- Posted by chrissy <tubby.toast at NTLWORLD.COM> Jan 18, 2001
- 509 views
I've run into the same problem with a project I'm doing. However I'm not concerned so much with the disk space the graphics will take up, more with the effect of loading three megabytes of bitmaps into memory. The way I understand it, whichever graphics format I use, they will still need to be converted to bitmaps once loaded in order to display them (with BitBlt etc). Am I wrong? I reluctantly decided to just use 256 colours in the end (only one meg of graphics). chris. ----- Original Message ----- From: "Brian Broker" <bkb at CNW.COM> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: 18 January 2001 00:22 Subject: Re: Win32Lib & Bitmaps or maybe GIF's > On Wed, 17 Jan 2001 14:47:38 -0500, Euman wrote: > > >Hello Fellow Coders, > > > >I was wondering if anyone has researched the ability > >to bitBlt and transBlt GIF files (if possible)? > > > >I am pretty sure that to use the GIF file Format you > >would need a liscence. Am I right? > > > >I am extensively useing bitmaps and have found that over > >time (to include these bitmaps with my program) the expense of HD space is > too great. > > > >Does anyone have an alternative to oversized images > >other than zip archives? > > > >If I were to use JPEG what if any restictions would apply? > >Is it possible to use this format with Win32Lib? > > > >I want to shave some bytes by-way-of graphics and need > >some ideas. > > > >I cant use Euphoria bitmaps because of the limitation > >of being only 256 color depth (8 bit) > > > >Thanks in Advance all ! > >\ > >euman at bellsouth.net > > I think that the Portable Network Graphic (PNG) format is a great > alternative to GIF. It is a lossless format (JPEG loses info with more > compression), it has good compression (using zlib) and does more than 256 > colors (a limitation of the GIF format). > > At one point I started wrapping libraries for JPEG and/or PNG support for > Win32Lib but like most of my projects, I lose interest or free time before > completing the task. I'll see about finishing up the PNG lib since I am > more interested in the format.... > > For more info on PNG see http://www.libpng.org/pub/png/ > and for a library see http://www.libpng.org/pub/png/libpng.html > > -- Brian >
6. Re: Win32Lib & Bitmaps or maybe GIF's
- Posted by Brian Broker <bkb at CNW.COM> Jan 18, 2001
- 477 views
On Wed, 17 Jan 2001 19:22:58 -0500, I wrote: >At one point I started wrapping libraries for JPEG and/or PNG support for >Win32Lib but like most of my projects, I lose interest or free time before >completing the task. I'll see about finishing up the PNG lib since I am >more interested in the format.... FYI: I'm making good progress on wrapping a library that will support the following formats: BMP files [reading, writing] ICO files [reading] JPEG/JIF files [reading, writing] KOALA files [reading] Kodak PhotoCD files [reading] PCX files [reading] PNG files [reading, writing] PNM files [reading, writing] Sun RAS files [reading] TARGA files [reading] TIFF files [reading, writing] WBMP files [reading, writing] Unfortunately, it will not be very 'generic' since I am using Win32Lib to wrap the functions. But to Win32Lib users looking for support of more image formats, rejoice! I'll try to get a beta out by the end of this weekend... -- Brian
7. Re: Win32Lib & Bitmaps or maybe GIF's
- Posted by Euman <euman at BELLSOUTH.NET> Jan 18, 2001
- 489 views
- Last edited Jan 19, 2001
Great, you seem to have covered most of the formats contained in JASC PaintShop Pro. I for one will rejoice at seeing them implemented. eum ----- Original Message ----- From: "Brian Broker" <bkb at CNW.COM> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Thursday, January 18, 2001 16:43 Subject: Re: Win32Lib & Bitmaps or maybe GIF's > On Wed, 17 Jan 2001 19:22:58 -0500, I wrote: > > >At one point I started wrapping libraries for JPEG and/or PNG support for > >Win32Lib but like most of my projects, I lose interest or free time before > >completing the task. I'll see about finishing up the PNG lib since I am > >more interested in the format.... > > FYI: > > I'm making good progress on wrapping a library that will support the > following formats: > > BMP files [reading, writing] > ICO files [reading] > JPEG/JIF files [reading, writing] > KOALA files [reading] > Kodak PhotoCD files [reading] > PCX files [reading] > PNG files [reading, writing] > PNM files [reading, writing] > Sun RAS files [reading] > TARGA files [reading] > TIFF files [reading, writing] > WBMP files [reading, writing] > > Unfortunately, it will not be very 'generic' since I am using Win32Lib to > wrap the functions. But to Win32Lib users looking for support of more > image formats, rejoice! > > I'll try to get a beta out by the end of this weekend... > > -- Brian >
8. Re: Win32Lib & Bitmaps or maybe GIF's
- Posted by Kat <gertie at PELL.NET> Jan 18, 2001
- 499 views
On 18 Jan 2001, at 16:43, Brian Broker wrote: > On Wed, 17 Jan 2001 19:22:58 -0500, I wrote: > > >At one point I started wrapping libraries for JPEG and/or PNG support for > >Win32Lib but like most of my projects, I lose interest or free time before > >completing the task. I'll see about finishing up the PNG lib since I am more > >interested in the format.... > > FYI: > > I'm making good progress on wrapping a library that will support the > following formats: > > BMP files [reading, writing] > ICO files [reading] > JPEG/JIF files [reading, writing] > KOALA files [reading] > Kodak PhotoCD files [reading] > PCX files [reading] > PNG files [reading, writing] > PNM files [reading, writing] > Sun RAS files [reading] > TARGA files [reading] > TIFF files [reading, writing] > WBMP files [reading, writing] Wow, way great! Is it possible to do comparisons of pics, say for instance, read regions of a gif to do pattern comparisons? So if one gif is a pic of a plate, and a plate is occupying most of another pic, can Eu (your lib) be used to say there is a plate in the second pic? Kat
9. Re: Win32Lib & Bitmaps or maybe GIF's
- Posted by Brian Broker <bkb at CNW.COM> Jan 18, 2001
- 533 views
- Last edited Jan 19, 2001
On Thu, 18 Jan 2001 18:46:33 -0600, Kat wrote: >Wow, way great! >Is it possible to do comparisons of pics, say for instance, read regions >of a gif to do pattern comparisons? So if one gif is a pic of a plate, and >a plate is occupying most of another pic, can Eu (your lib) be used to say >there is a plate in the second pic? > >Kat No, nothing that fancy. So far I've wrapped functions that will read the files... and another function will create a DIB that can be displayed using Win32Lib's 'drawBitmap' function. Unfortunately, the lib doesn't support GIF's (Unisys copyright?), however, I've previously done some work with the GIF library in the RDS archives so I could easily incorporate it into the lib. But functions will be provided which allow you to directly access the image palette and bits so you could conceivably expand on the functionality... Various color reduction and image effects will also be included. In case anybody is wondering, the library I'm wrapping up is FreeImage. http://home.wxs.nl/~flvdberg/ This is an easy to use, high level library, but I was only looking for a general purpose image decoder for use in our Win32Lib programs (especially support for JPEG and PNG). That and I wanted something that would be easy to wrap (which it is... 8^) -- Brian