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