public ConvolutionFilter(SwfStream stream) { Width = stream.ReadByte(); Height = stream.ReadByte(); Divisor = stream.ReadSingle(); Bias = stream.ReadSingle(); Matrix = stream.ReadSingleArray(Width * Height); DefaultColor = stream.ReadRGBA(); byte flags = stream.ReadByte(); Clamp = (flags & 0x02) != 0; PreserveAlpha = (flags & 0x01) != 0; }
public ColorMatrixFilter(SwfStream stream) { Matrix = stream.ReadSingleArray(20); }