This commit is contained in:
Matthew Leibowitz 2016-11-25 10:59:12 +02:00
Родитель 7d5e4286f0
Коммит d58c92c252
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -2985,7 +2985,7 @@ typeMask = Mask.Scale | Mask.RectStaysRect
public SKEncodedInfoColor Color => color;
public SKEncodedInfoAlpha Alpha => alpha;
public byte BitsPerComponent => bitsPerComponent;
public byte PitsPerPixel {
public byte BitsPerPixel {
get {
switch (color) {
case SKEncodedInfoColor.Gray:

Просмотреть файл

@ -57,7 +57,7 @@ namespace SkiaSharpSample.Samples
canvas.DrawText(string.Format("Pixels: {0} @ {1}b/px", bitmap.Pixels.Length, bitmap.BytesPerPixel), x, y, paint);
y += 20;
canvas.DrawText(string.Format("Encoding: {0} ({1}) @ {2}b/px", encodedInfo.Color, encodedInfo.Alpha, encodedInfo.BytesPerPixel), x, y, paint);
canvas.DrawText(string.Format("Encoding: {0} ({1}) @ {2}-bit color", encodedInfo.Color, encodedInfo.Alpha, encodedInfo.BitsPerComponent), x, y, paint);
}
}
}