-
Oct 31st, 2015, 12:24 PM
#1
-
Oct 31st, 2015, 12:36 PM
#2
Re: [VB6] Creation of GIF-animation with the transparent background.
Setting the GIF frame structure to specifically define the disposal code is the right choice, I agree. A couple of other points of interest
1. GdipGetImageThumbnail is ok, however, it can produce poor scaling. Just FYI
2. GdipSaveAddImage does not work on earlier versions of GDI+ for GIFs. Maybe there should be a validation check?
3. You may want to check to see a color table is being created for every frame. If it is, then the GIF can be much larger than needed. Without checking, I don't know if GdipSaveAddImage creates a local color table per frame or if it changes the pixel data to force using the global color table. In my projects, I build a color table that can be used by the most frames and set that color table as global and tell each of those frames to use the global. For the remaining frames that cannot use it, they keep their local color table.
-
Oct 31st, 2015, 12:54 PM
#3
Re: [VB6] Creation of GIF-animation with the transparent background.
LaVolpe, thanks for response.
Originally Posted by LaVolpe
1. GdipGetImageThumbnail is ok, however, it can produce poor scaling. Just FYI
Ok, i didn't know. Thanks.
Originally Posted by LaVolpe
GdipSaveAddImage does not work on earlier versions of GDI+ for GIFs. Maybe there should be a validation check?
Yes, as far as i know it doesn't work in XP. I was having my own code for the creation GIF frame, but it's written on C++. Maybe ever i'll update this code. Honestly, it is old project, i just posted it here.
Originally Posted by LaVolpe
You may want to check to see a color table is being created for every frame. If it is, then the GIF can be much larger than needed. Without checking, I don't know if GdipSaveAddImage creates a local color table per frame or if it changes the pixel data to force using the global color table. In my projects, I build a color table that can be used by the most frames and set that color table as global and tell each of those frames to use the global. For the remaining frames that cannot use it, they keep their local color table.
In this example is created the palette for each frame. Just use oct-tree class, we can calculate the optimal palette for each frame and for entire animation.
-
Jun 21st, 2016, 08:11 AM
#4
Member
Re: [VB6] Creation of GIF-animation with the transparent background.
can not used in xp, can you fixed?thanks!
-
Jun 22nd, 2016, 03:13 AM
#5
Re: [VB6] Creation of GIF-animation with the transparent background.
It was already stated that this method doesn't work on XP...
Yes, as far as i know it doesn't work in XP. I was having my own code for the creation GIF frame, but it's written on C++. Maybe ever i'll update this code. Honestly, it is old project, i just posted it here.
-
Jun 22nd, 2016, 03:15 AM
#6
Re: [VB6] Creation of GIF-animation with the transparent background.
Originally Posted by xxdoc
can not used in xp, can you fixed?thanks!
Hi. I'll fix it later.
-
Jun 22nd, 2016, 03:52 AM
#7
Member
Re: [VB6] Creation of GIF-animation with the transparent background.
-
Jul 31st, 2016, 01:43 PM
#8
Lively Member
Re: [VB6] Creation of GIF-animation with the transparent background.
Last edited by On Error Try Again; Jul 31st, 2016 at 02:41 PM.
-
Dec 26th, 2018, 12:02 PM
#9
Fanatic Member
Re: [VB6] Creation of GIF-animation with the transparent background.
Don't you just hate it when someone says they'll do something and you never hear from them again
Last edited by Code Dummy; Dec 26th, 2018 at 12:09 PM.
-
Dec 26th, 2018, 05:54 PM
#10
Re: [VB6] Creation of GIF-animation with the transparent background.
Don't know about that, but I sure do get aggravated by passive-aggressive voice.
This is a forum of volunteers, many of whom are talented enough to be as busy as they want to be. People forget, or have other priorities, or just lose interest. There's no requirement on them, nor are they profiting from providing free code. You might ask them, if it matters that much.
My usual boring signature: Nothing
-
Dec 26th, 2018, 05:54 PM
#11
Re: [VB6] Creation of GIF-animation with the transparent background.
Don't know about that, but I sure do get aggravated by passive-aggressive voice.
This is a forum of volunteers, many of whom are talented enough to be as busy as they want to be. People forget, or have other priorities, or just lose interest. There's no requirement on them, nor are they profiting from providing free code. You might ask them, if it matters that much.
My usual boring signature: Nothing
-
Dec 27th, 2018, 02:54 AM
#12
Re: [VB6] Creation of GIF-animation with the transparent background.
Code Dummy, sorry if you're still waiting the sources but i don't have the time and the interest for that project (i have the more priority projects). I wrote:
and didn't specify any time ranges.
-
Dec 8th, 2020, 02:07 AM
#13
Re: [VB6] Creation of GIF-animation with the transparent background.
Is there any other way to create GIF with VB6 or vb.net?
how to use、import .net frame method in vb6?
-
Dec 8th, 2020, 03:11 AM
#14
Fanatic Member
Re: [VB6] Creation of GIF-animation with the transparent background.
Originally Posted by xiaoyao
Is there any other way to create GIF with VB6 or vb.net?
how to use、import .net frame method in vb6?
xiaoyao, don't abuse the thread with an irrelevant question.
-
May 10th, 2021, 10:44 PM
#15
Member
Re: [VB6] Creation of GIF-animation with the transparent background.
I love how small the code is. Do you know how to load an image from an stdpicture or hWnd, and save to a byte array instead of a file?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|