Skip to content

Commit d0317f8

Browse files
committed
Add GraphAlpha pixel format constants
1 parent 2450b10 commit d0317f8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

RELEASE_NOTES.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
- Fixed range constructors for empty and null arrays and sequences
2+
- Added GraphAlpha pixel format constants
23

34
### 5.3.10
45
- [IO] Added SymMap constructor overload

src/Aardvark.Base/Math/Colors/Color.cs

+9
Original file line numberDiff line numberDiff line change
@@ -1514,6 +1514,7 @@ public PixFormat(Type type, Col.Format format)
15141514

15151515
public static readonly PixFormat ByteBW = new PixFormat(typeof(byte), Col.Format.BW);
15161516
public static readonly PixFormat ByteGray = new PixFormat(typeof(byte), Col.Format.Gray);
1517+
public static readonly PixFormat ByteGrayAlpha = new PixFormat(typeof(byte), Col.Format.GrayAlpha);
15171518
public static readonly PixFormat ByteRG = new PixFormat(typeof(byte), Col.Format.RG);
15181519
public static readonly PixFormat ByteBGR = new PixFormat(typeof(byte), Col.Format.BGR);
15191520
public static readonly PixFormat ByteRGB = new PixFormat(typeof(byte), Col.Format.RGB);
@@ -1524,6 +1525,7 @@ public PixFormat(Type type, Col.Format format)
15241525

15251526
public static readonly PixFormat SByteBW = new PixFormat(typeof(sbyte), Col.Format.BW);
15261527
public static readonly PixFormat SByteGray = new PixFormat(typeof(sbyte), Col.Format.Gray);
1528+
public static readonly PixFormat SByteGrayAlpha = new PixFormat(typeof(sbyte), Col.Format.GrayAlpha);
15271529
public static readonly PixFormat SByteRG = new PixFormat(typeof(sbyte), Col.Format.RG);
15281530
public static readonly PixFormat SByteBGR = new PixFormat(typeof(sbyte), Col.Format.BGR);
15291531
public static readonly PixFormat SByteRGB = new PixFormat(typeof(sbyte), Col.Format.RGB);
@@ -1533,6 +1535,7 @@ public PixFormat(Type type, Col.Format format)
15331535
public static readonly PixFormat SByteRGBP = new PixFormat(typeof(sbyte), Col.Format.RGBP);
15341536

15351537
public static readonly PixFormat UShortGray = new PixFormat(typeof(ushort), Col.Format.Gray);
1538+
public static readonly PixFormat UShortGrayAlpha = new PixFormat(typeof(ushort), Col.Format.GrayAlpha);
15361539
public static readonly PixFormat UShortRG = new PixFormat(typeof(ushort), Col.Format.RG);
15371540
public static readonly PixFormat UShortBGR = new PixFormat(typeof(ushort), Col.Format.BGR);
15381541
public static readonly PixFormat UShortRGB = new PixFormat(typeof(ushort), Col.Format.RGB);
@@ -1542,6 +1545,7 @@ public PixFormat(Type type, Col.Format format)
15421545
public static readonly PixFormat UShortRGBP = new PixFormat(typeof(ushort), Col.Format.RGBP);
15431546

15441547
public static readonly PixFormat ShortGray = new PixFormat(typeof(short), Col.Format.Gray);
1548+
public static readonly PixFormat ShortGrayAlpha = new PixFormat(typeof(short), Col.Format.GrayAlpha);
15451549
public static readonly PixFormat ShortRG = new PixFormat(typeof(short), Col.Format.RG);
15461550
public static readonly PixFormat ShortBGR = new PixFormat(typeof(short), Col.Format.BGR);
15471551
public static readonly PixFormat ShortRGB = new PixFormat(typeof(short), Col.Format.RGB);
@@ -1551,6 +1555,7 @@ public PixFormat(Type type, Col.Format format)
15511555
public static readonly PixFormat ShortRGBP = new PixFormat(typeof(short), Col.Format.RGBP);
15521556

15531557
public static readonly PixFormat UIntGray = new PixFormat(typeof(uint), Col.Format.Gray);
1558+
public static readonly PixFormat UIntGrayAlpha = new PixFormat(typeof(uint), Col.Format.GrayAlpha);
15541559
public static readonly PixFormat UIntRG = new PixFormat(typeof(uint), Col.Format.RG);
15551560
public static readonly PixFormat UIntBGR = new PixFormat(typeof(uint), Col.Format.BGR);
15561561
public static readonly PixFormat UIntRGB = new PixFormat(typeof(uint), Col.Format.RGB);
@@ -1560,6 +1565,7 @@ public PixFormat(Type type, Col.Format format)
15601565
public static readonly PixFormat UIntRGBP = new PixFormat(typeof(uint), Col.Format.RGBP);
15611566

15621567
public static readonly PixFormat IntGray = new PixFormat(typeof(int), Col.Format.Gray);
1568+
public static readonly PixFormat IntGrayAlpha = new PixFormat(typeof(int), Col.Format.GrayAlpha);
15631569
public static readonly PixFormat IntRG = new PixFormat(typeof(int), Col.Format.RG);
15641570
public static readonly PixFormat IntBGR = new PixFormat(typeof(int), Col.Format.BGR);
15651571
public static readonly PixFormat IntRGB = new PixFormat(typeof(int), Col.Format.RGB);
@@ -1569,6 +1575,7 @@ public PixFormat(Type type, Col.Format format)
15691575
public static readonly PixFormat IntRGBP = new PixFormat(typeof(int), Col.Format.RGBP);
15701576

15711577
public static readonly PixFormat HalfGray = new PixFormat(typeof(Half), Col.Format.Gray);
1578+
public static readonly PixFormat HalfGrayAlpha = new PixFormat(typeof(Half), Col.Format.GrayAlpha);
15721579
public static readonly PixFormat HalfRG = new PixFormat(typeof(Half), Col.Format.RG);
15731580
public static readonly PixFormat HalfBGR = new PixFormat(typeof(Half), Col.Format.BGR);
15741581
public static readonly PixFormat HalfRGB = new PixFormat(typeof(Half), Col.Format.RGB);
@@ -1578,6 +1585,7 @@ public PixFormat(Type type, Col.Format format)
15781585
public static readonly PixFormat HalfRGBP = new PixFormat(typeof(Half), Col.Format.RGBP);
15791586

15801587
public static readonly PixFormat FloatGray = new PixFormat(typeof(float), Col.Format.Gray);
1588+
public static readonly PixFormat FloatGrayAlpha = new PixFormat(typeof(float), Col.Format.GrayAlpha);
15811589
public static readonly PixFormat FloatRG = new PixFormat(typeof(float), Col.Format.RG);
15821590
public static readonly PixFormat FloatBGR = new PixFormat(typeof(float), Col.Format.BGR);
15831591
public static readonly PixFormat FloatRGB = new PixFormat(typeof(float), Col.Format.RGB);
@@ -1587,6 +1595,7 @@ public PixFormat(Type type, Col.Format format)
15871595
public static readonly PixFormat FloatRGBP = new PixFormat(typeof(float), Col.Format.RGBP);
15881596

15891597
public static readonly PixFormat DoubleGray = new PixFormat(typeof(double), Col.Format.Gray);
1598+
public static readonly PixFormat DoubleGrayAlpha = new PixFormat(typeof(double), Col.Format.GrayAlpha);
15901599
public static readonly PixFormat DoubleRG = new PixFormat(typeof(double), Col.Format.RG);
15911600
public static readonly PixFormat DoubleBGR = new PixFormat(typeof(double), Col.Format.BGR);
15921601
public static readonly PixFormat DoubleRGB = new PixFormat(typeof(double), Col.Format.RGB);

0 commit comments

Comments
 (0)