public bool SameDimentions(int widthInPixels, int height, PixelFormat packedFormat) { return (PackedFormat == packedFormat && Height == height && WidthInBlocks == BadgeImage.CalculatePackedPixelBlocks(widthInPixels)); }
public BadgeRenderTarget(int widthInPixels, int height, PixelFormat packedFormat, byte[] intermediateImage = null) { WidthInBlocks = BadgeImage.CalculatePackedPixelBlocks(widthInPixels); WidthInPixels = widthInPixels; Height = height; PackedFormat = packedFormat; IntermediateStride = WidthInBlocks * BadgeCaps.PixelsPerBlockBitPlane; IntermediateImage = intermediateImage ?? new byte[IntermediateStride * height]; }