Implementation of IImageInfoDetector for original image format #1914
-
I'm trying to implement The And public class MyImageInfo : IImageInfo
{
public MyImageInfo(PixelTypeInfo pixelType, int width, int height, ImageMetadata metadata)
{
PixelType = pixelType;
Width = width;
Height = height;
Metadata = metadata;
}
public PixelTypeInfo PixelType { get; }
public int Width { get; }
public int Height { get; }
public ImageMetadata Metadata { get; }
}
public sealed class MyDecoder :IImageDecoder, IImageInfoDetector
{
public IImageInfo Identify(Configuration configuration, Stream stream)
{
// Do something and create ImageInfo
return new MyImageInfo(pixelType, width, height, metadata/*how to create?*/);
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yep. That's a bug. If you fancy raising a PR to make the constructor public that would be great! |
Beta Was this translation helpful? Give feedback.
Yep. That's a bug. If you fancy raising a PR to make the constructor public that would be great!