feature: document template QR Code image extensions

This commit is contained in:
Gary Sharp
2023-10-12 15:51:33 +11:00
parent 7353405b16
commit a3fb09440d
17 changed files with 299 additions and 65 deletions
@@ -16,14 +16,19 @@ namespace Disco.Services.Expressions.Extensions.ImageResultImplementations
this.Image = Image;
}
public override Stream GetImage(int Width, int Height)
public override MemoryStream GetImage(int width, int height)
{
return RenderImage(Image, Width, Height);
return RenderBitmapImage(Image, width, height);
}
public override Stream GetImage()
public override MemoryStream GetImage(out int width, out int height)
{
return OutputImage(Image);
var image = Image;
width = image.Width;
height = image.Height;
return OutputBitmapImage(image);
}
}
}