Page 3 of 10

Re: PureBasic 5.60 beta 1 is available

Posted: Fri Jan 27, 2017 8:10 pm
by Torp
Many many tanks for all !

Envoyé de mon SM-G901F en utilisant Tapatalk

Re: PureBasic 5.60 beta 1 is available

Posted: Fri Jan 27, 2017 8:22 pm
by netmaestro
- Added: GIF decoder support
I stopped by Hell this morning and now I've got a nasty bruise on my hip. Slipped on the ice. :D

Re: PureBasic 5.60 beta 1 is available

Posted: Fri Jan 27, 2017 8:27 pm
by Keya
btw what GIF decoder is it? i couldnt find license info in helpfile\General Libraries

Re: PureBasic 5.60 beta 1 is available

Posted: Fri Jan 27, 2017 8:30 pm
by walbus
@Netmaestro
Your Gif decoder is a urgent part for learning how the things works !

Re: PureBasic 5.60 beta 1 is available

Posted: Fri Jan 27, 2017 8:34 pm
by netmaestro
Thanks Walbus! It was a lot of fun to write, even though there were some headaches along the way.

As to what decoder library Fred used, my guess would be that he wrote it himself. (after studying mine closely of course :wink: )

Re: PureBasic 5.60 beta 1 is available

Posted: Fri Jan 27, 2017 8:37 pm
by walbus
You make great things Netmeastro, with Wilbert together, ever the best i have seen !

Re: PureBasic 5.60 beta 1 is available

Posted: Fri Jan 27, 2017 8:41 pm
by Fred
netmaestro wrote:Thanks Walbus! It was a lot of fun to write, even though there were some headaches along the way.

As to what decoder library Fred used, my guess would be that he wrote it himself. (after studying mine closely of course :wink: )
I wouldn't reinvent the wheel if something already exists :). We use giflib: http://giflib.sourceforge.net/intro.html

Your code was so much compact and clever it was tempting to use it as base, but handling all special case would have required a lot of work.

Re: PureBasic 5.60 beta 1 is available

Posted: Fri Jan 27, 2017 8:47 pm
by walbus
So, i self use CSS sprite sheets with BF advanced for animated graphics
This is many better, simplest and more flexible as all GIF´s, i self mean :wink:

Re: PureBasic 5.60 beta 1 is available

Posted: Fri Jan 27, 2017 9:24 pm
by Keya
zomg... PB 5.60 Win32 executable with "UseGIFImageDecoder()" is only 11kb!
And this full program to load and display a GIF in an image gadget in a window is only 49kb:

Code: Select all

UseGIFImageDecoder()
If OpenWindow(0, 0, 0, 500, 500, "GIF", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  hImg = LoadImage(#PB_Any, "c:\test.gif")
  ImageGadget(0, 0, 0, 500, 500, ImageID(hImg))
  Repeat
    Event = WaitWindowEvent()
  Until Event = #PB_Event_CloseWindow
EndIf
It's soooooo nice now being able to easily and natively support transparency with hardly any overhead :) :) :) One of my main #1stworldproblems is i hate including 200kb of PNG lib to display transparent images in my 50kb apps hehe, not an issue anymore!

Re: PureBasic 5.60 beta 1 is available

Posted: Fri Jan 27, 2017 9:52 pm
by holzhacker
IdeasVacuum wrote:
- Added: #PB_Canvas_Container support to have a container behaviour for canvas
That's seriously useful Fred 8) I think you have earned an afternoon off.....
Image

Yes sure will be a lot used for me in the next version of my system.

Coded with PB 5.44 LTS, vector drawing library and using routines found in the GIF forum to illustrate error actions to the user.

I am seriously thinking of migrating the code to the non-LTS version :lol: :lol: :lol: rsrsrsr :?: :?: :?:

I still dream one day that I can compile this system for RaspBerry PI with PureBasic :( :( :( :cry: :cry: :cry:

Re: PureBasic 5.60 beta 1 is available

Posted: Fri Jan 27, 2017 9:58 pm
by walbus
For transparence you must not have PNG or GIF or TIFF, primary you can also use high compressed pictures
So you have not color restrictions and a good code for making this is very little
GIF is a artefact from the computer stone age

Re: PureBasic 5.60 beta 1 is available

Posted: Fri Jan 27, 2017 10:20 pm
by holzhacker
walbus wrote:For transparence you must not have PNG or GIF or TIFF, primary you can also use high compressed pictures
So you have not color restrictions and a good code for making this is very little
GIF is a artefact from the computer stone age
"Users" friend ... ask for help even when the paper ends in the printer without checking. Believe me ... the illustrative GIFs HELP the user a lot to understand the problem.

Many years ago I had a movie rental system made in Clipper 5.2, still VHS, DVD start. I had a very old client who called me for EVERYTHING. So I put up an ASCII animation by drawing a paperless printer so she would look at the printer and change the paper (in roll) that printed the tickets.

What happened?

She called me saying she had a printer and a message on the computer screen, and asking what to do ... the message said, "Printer out of paper. Check the printer paper"

USER = :evil:

Image

And just to note ... GIF's came back with everything on Facebook, Whatsapp, Bluetooth of course for other uses rsrsrsr;)

Re: PureBasic 5.60 beta 1 is available

Posted: Fri Jan 27, 2017 10:36 pm
by walbus
GIF are OK for many Websites, but, for professional software it looking often childish and non professional, i self think
So i am primary not a friend from this

But, the user error message is cool ,LOL

Re: PureBasic 5.60 beta 1 is available

Posted: Fri Jan 27, 2017 11:07 pm
by holzhacker
walbus wrote:GIF are OK for many Websites, but, for professional software it looking often childish and non professional, i self think
So i am primary not a friend from this

But, the user error message is cool ,LOL
Image

Here is an example of using GIF in a professional program. (One of the ways I use it and find it very useful and easy to customize)

When an error occurs in the system the client can send the collected data directly to me and the GIF demonstrates to him the waiting for the sending of the email in this case.

Well friend now forgive me, but here in Rio de Janeiro is 20:02 and I go hunting for a beer to drink :D :D :D

Re: PureBasic 5.60 beta 1 is available

Posted: Fri Jan 27, 2017 11:42 pm
by majikeyric
Thanks Fred and Team !!! :D