Welcome Guest! You need to login or register to make posts.



Go to last post Go to first unread
#1 Posted : Tuesday, May 9, 2017 9:47:45 AM(UTC)

Rank: Advanced Member

Groups: Member
Joined: 10/12/2015(UTC)
Posts: 35

I have two images, the second image is a slight variation of the first (Gifs). I'm trying to find the difference between the two images, and replace all the common pixels with transparent ones.

I hope that makes sense, this is my first step in trying to "optimize" an animated gif. 90% of the pixels are identical to the the base/source/frame 1 of sequence of images.

I'm not looking for someone to write the code for me, but if someone could point me in the right direction I'd be grateful. Do I need to loop through the pixels of each image, compare them, and if they're equal just output a transparent pixel? Can I use some sort of CombineMode.Xor?

Again, a push in the right direction would be greatly appreciated.
#2 Posted : Wednesday, May 10, 2017 8:47:55 PM(UTC)

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,556

Thanks: 5 times
Was thanked: 62 time(s) in 61 post(s)
Unfortunately, I don't see any combine mode or any blending mode (introduced in the version 9) which can help with this task.

So it seems, you should run over all pixels and manually compare them.
Best regards,
Fedor Skvortsov
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.