Keypoint PngEncoder doesn't do alpha encoding

A discussion forum for the JCommon class library.
Post Reply
rasman1978
Posts: 1
Joined: Thu Jul 26, 2007 5:58 pm

Keypoint PngEncoder doesn't do alpha encoding

Post by rasman1978 » Thu Jul 26, 2007 6:01 pm

Looking at the 1.0.10 source code, quickly shows that the parameter on the method with signature

Code: Select all

public byte[] pngEncode(boolean encodeAlpha)
is never used in the body of the method. There's also this encodeAlpha member variable that gets passed around, but it's never actually used in the body of the method that's doing the encoding.

Surely this was just overlooked?

Cheers,
Erik

Post Reply