Skip to content
Discussion options

You must be logged in to vote

set OpaqueBackground=false in DrawerOptions ,such as following code.

private static DrawerOptions BuildDrawOption(string fontName = "NotoSansSC-SemiBold")
{
var fontFile = Path.Combine(AppContext.BaseDirectory, "fonts", $"{fontName}.ttf");
var drawOptions = new DrawerOptions
{
FontLoader = fontName => { return SKTypeface.FromFile(fontFile); },
OpaqueBackground = false,
PdfOutput = false,
RenderFormat = SKEncodedImageFormat.Png,
RenderQuality = 100,
Antialias = true,
ReplaceDashWithEnDash = false
};
return drawOptions;
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by primo-ppcg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #272 on October 26, 2025 01:36.