Repository navigation
Implementation of IImageInfoDetector for original image format #1914
Answered
by
JimBobSquarePants
jz5
asked this question in
Show and tell
|
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?*/);
}
} |
Answered by
JimBobSquarePants
Jan 3, 2022
Replies: 1 comment
Yep. That's a bug. If you fancy raising a PR to make the constructor public that would be great! |
0 replies
Answer selected by
jz5
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yep. That's a bug. If you fancy raising a PR to make the constructor public that would be great!