@Fred: Can I add 'my' own ImagePlugin (e.g GIF En-/Decoder)?

Everything else that doesn't fall into one of the other PB categories.
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

@Fred: Can I add 'my' own ImagePlugin (e.g GIF En-/Decoder)?

Post by IceSoft »

Hello @Fred,
Is there a possibility to add an own ImagePlugin like the delivered one (e.g. UseJPEGImageDecoder)

The following commands should support the 'extended' image plugin too: LoadImage(), CatchImage(), SaveImage(), LoadSprite() CatchSprite(), and SaveSprite())

Maybe you can add an interface on PB4.0 for that?
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Mowen
User
User
Posts: 48
Joined: Tue Oct 07, 2003 1:04 pm
Location: Belgium

Post by Mowen »

Maybe I am wrong but I think the Gif format is not free anymore and you have to pay the license to distribute a decoder.
PureBasic: one of the best programming tools ever ! PB is light, easy, crossplatform, powerfull, fast, extendable, enjoyable and... tasty ;-)
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Re: @Fred: Can I add 'my' own ImagePlugin (e.g GIF En-/Decod

Post by traumatic »

IceSoft wrote:Is there a possibility to add an own ImagePlugin like the delivered one (e.g. UseJPEGImageDecoder)
There's an example in the Library-SDK, isn't that what you're after?
Good programmers don't comment their code. It was hard to write, should be hard to read.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> I think the Gif format is not free anymore

It was free, then you had to pay, but now it's free again, and has been for
many months. :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: @Fred: Can I add 'my' own ImagePlugin (e.g GIF En-/Decod

Post by IceSoft »

traumatic wrote:
IceSoft wrote:Is there a possibility to add an own ImagePlugin like the delivered one (e.g. UseJPEGImageDecoder)
There's an example in the Library-SDK, isn't that what you're after?
Not really.
What I meanit should like the nativ ImagePlugins which supports also if I use e.g. LoadImage()
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Look in the LccWin32\ drawer of the SDK dir, there is an example (in C).
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

I see...thanks.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

IceSoft wrote:I see...thanks.
Or look at the TailBite Examples ;) .
bye,
Daniel
PHP
User
User
Posts: 65
Joined: Sat Sep 10, 2005 5:38 pm

Post by PHP »

viewtopic.php?t=17942

When will GIF finally be included in PB?!
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

I think Fred has some plans for that for PB4.0, but if he doesn't, I'll stay with 3.94 :lol:
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

GIF is still under patents and won't be implemented in PB until ALL patents actually expires. Check the bottom page here: http://www.gnu.org/philosophy/gif.html .
PHP
User
User
Posts: 65
Joined: Sat Sep 10, 2005 5:38 pm

Post by PHP »

The U.S. IBM patent expires 11 August 2006
Ah... means we have to wait at least 1 year :-/
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

PHP wrote:
The U.S. IBM patent expires 11 August 2006
Ah... means we have to wait at least 1 year :-/
I'd say it's closer to only eight ( 8 ) months till that patent expires. That's a third (3rd) quicker already.

:P
Intrigued - Registered PureBasic, lifetime updates user
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

You can already use Gdiplus to load/save gifs.
El_Choni
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Fred: Below is a quote from http://www.gnu.org/philosophy/gif.html
Decoding GIFs is a different issue. The Unisys and IBM patents are both written in such a way that they do not apply to a program which can only uncompress LZW format and cannot compress. Therefore we can and will include support for displaying GIF files in GNU software.

Given this situation, we could still include GIF files in our web pages if we wanted to. Many other people would be happy to generate them for us, and we would not be sued for having GIF files on our server.
You could therefore include gif decoding now, but only include encoding post-August 2006.

If you do include gif decoding in the future, could you make it so that the lzw is available seperately as being able to decode lzw native to PureBasic would be really useful.

btw, anyone know of a lzw/lzh/rar lib or a free dll for PureBasic yet?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Post Reply