@@ -182,48 +182,6 @@ public void Encode_8BitGray_WithV4Header_Works<TPixel>(TestImageProvider<TPixel>
182182 bitsPerPixel ,
183183 supportTransparency : true ) ;
184184
185- [ Theory ]
186- [ WithFile ( Bit32Rgb , PixelTypes . Rgba32 ) ]
187- public void Encode_8BitColor_WithWuQuantizer < TPixel > ( TestImageProvider < TPixel > provider )
188- where TPixel : struct , IPixel < TPixel >
189- {
190- using ( Image < TPixel > image = provider . GetImage ( ) )
191- {
192- var encoder = new BmpEncoder
193- {
194- BitsPerPixel = BmpBitsPerPixel . Pixel8 ,
195- Quantizer = new WuQuantizer ( 256 )
196- } ;
197- string actualOutputFile = provider . Utility . SaveTestOutputFile ( image , "bmp" , encoder , appendPixelTypeToFileName : false ) ;
198- IImageDecoder referenceDecoder = TestEnvironment . GetReferenceDecoder ( actualOutputFile ) ;
199- using ( var referenceImage = Image . Load < TPixel > ( actualOutputFile , referenceDecoder ) )
200- {
201- referenceImage . CompareToReferenceOutput ( ImageComparer . TolerantPercentage ( 0.01f ) , provider , extension : "bmp" , appendPixelTypeToFileName : false ) ;
202- }
203- }
204- }
205-
206- [ Theory ]
207- [ WithFile ( Bit32Rgb , PixelTypes . Rgba32 ) ]
208- public void Encode_8BitColor_WithOctreeQuantizer < TPixel > ( TestImageProvider < TPixel > provider )
209- where TPixel : struct , IPixel < TPixel >
210- {
211- using ( Image < TPixel > image = provider . GetImage ( ) )
212- {
213- var encoder = new BmpEncoder
214- {
215- BitsPerPixel = BmpBitsPerPixel . Pixel8 ,
216- Quantizer = new OctreeQuantizer ( 256 )
217- } ;
218- string actualOutputFile = provider . Utility . SaveTestOutputFile ( image , "bmp" , encoder , appendPixelTypeToFileName : false ) ;
219- IImageDecoder referenceDecoder = TestEnvironment . GetReferenceDecoder ( actualOutputFile ) ;
220- using ( var referenceImage = Image . Load < TPixel > ( actualOutputFile , referenceDecoder ) )
221- {
222- referenceImage . CompareToReferenceOutput ( ImageComparer . TolerantPercentage ( 0.01f ) , provider , extension : "bmp" , appendPixelTypeToFileName : false ) ;
223- }
224- }
225- }
226-
227185 [ Theory ]
228186 [ WithFile ( TestImages . Png . GrayAlpha2BitInterlaced , PixelTypes . Rgba32 , BmpBitsPerPixel . Pixel32 ) ]
229187 [ WithFile ( Bit32Rgba , PixelTypes . Rgba32 , BmpBitsPerPixel . Pixel32 ) ]
0 commit comments