Exemplo n.º 1
0
 public bool SameDimentions(int widthInPixels, int height, PixelFormat packedFormat)
 {
     return
         (PackedFormat == packedFormat &&
          Height == height &&
          WidthInBlocks == BadgeImage.CalculatePackedPixelBlocks(widthInPixels));
 }
Exemplo n.º 2
0
 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];
 }