This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Notification

Icon
Error

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

Rank: Advanced Member

Groups: Guest
Joined: 10/12/2015(UTC)
Posts: 44

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.

Fedor  
#2 Posted : Wednesday, May 10, 2017 8:47:55 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Guest
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 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
Guest (2)
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.