@@ -78,7 +78,7 @@ public Image(int width, int height)
7878 /// <param name="height">The height of the image in pixels.</param>
7979 /// <param name="metadata">The images metadata.</param>
8080 internal Image ( Configuration configuration , int width , int height , ImageMetadata ? metadata )
81- : base ( configuration , PixelTypeInfo . Create < TPixel > ( ) , metadata ?? new ( ) , width , height )
81+ : base ( configuration , TPixel . GetPixelTypeInfo ( ) , metadata ?? new ( ) , width , height )
8282 => this . frames = new ImageFrameCollection < TPixel > ( this , width , height , default ( TPixel ) ) ;
8383
8484 /// <summary>
@@ -111,7 +111,7 @@ internal Image(
111111 int width ,
112112 int height ,
113113 ImageMetadata metadata )
114- : base ( configuration , PixelTypeInfo . Create < TPixel > ( ) , metadata , width , height )
114+ : base ( configuration , TPixel . GetPixelTypeInfo ( ) , metadata , width , height )
115115 => this . frames = new ImageFrameCollection < TPixel > ( this , width , height , memoryGroup ) ;
116116
117117 /// <summary>
@@ -129,7 +129,7 @@ internal Image(
129129 int height ,
130130 TPixel backgroundColor ,
131131 ImageMetadata ? metadata )
132- : base ( configuration , PixelTypeInfo . Create < TPixel > ( ) , metadata ?? new ( ) , width , height )
132+ : base ( configuration , TPixel . GetPixelTypeInfo ( ) , metadata ?? new ( ) , width , height )
133133 => this . frames = new ImageFrameCollection < TPixel > ( this , width , height , backgroundColor ) ;
134134
135135 /// <summary>
@@ -140,7 +140,7 @@ internal Image(
140140 /// <param name="metadata">The images metadata.</param>
141141 /// <param name="frames">The frames that will be owned by this image instance.</param>
142142 internal Image ( Configuration configuration , ImageMetadata metadata , IEnumerable < ImageFrame < TPixel > > frames )
143- : base ( configuration , PixelTypeInfo . Create < TPixel > ( ) , metadata , ValidateFramesAndGetSize ( frames ) )
143+ : base ( configuration , TPixel . GetPixelTypeInfo ( ) , metadata , ValidateFramesAndGetSize ( frames ) )
144144 => this . frames = new ImageFrameCollection < TPixel > ( this , frames ) ;
145145
146146 /// <inheritdoc />
0 commit comments