-
Notifications
You must be signed in to change notification settings - Fork 596
Closed
Labels
area/SkiaSharpIssues that relate to the C# binding of SkiaSharp.Issues that relate to the C# binding of SkiaSharp.type/bug
Milestone
Description
Description
SKBitmap.Resize with negative width/height values crashes the app
Code
SKImageInfo info = image.Info;
info.Width = -1;
info.Height = -1;
SKBitmap skb = SKBitmap.FromImage(image);
SKBitmap skb2 = skb.Resize(info, SKFilterQuality.High); //crash
Expected Behavior
Returns the resized bitmap if the resize operation could be performed, otherwise null.
Actual Behavior
Crashes while resizing
Basic Information
- Version with issue: 2.88.0-preview.256
- Last known good version:
- IDE: Visual Studio
- Platform Target Frameworks: WinUI
Metadata
Metadata
Assignees
Labels
area/SkiaSharpIssues that relate to the C# binding of SkiaSharp.Issues that relate to the C# binding of SkiaSharp.type/bug
Type
Projects
Status
Done