Is there an issue with C# Winforms image resizing function?

I was using this snippet of code to resize the image and display to a picture box:
Bitmap resizedImage = new Bitmap(newWidth, newHeight, PixelFormat.Format32bppArgb);
using (Graphics g = Graphics.FromImage(resizedImage))
{
g.InterpolationMode = InterpolationMode.HighQualityBicubic;
g.SmoothingMode = SmoothingMode.HighQuality;
g.PixelOffsetMode = PixelOffsetMode.HighQuality;
g.CompositingQuality = CompositingQuality.HighQuality;
g.DrawImage(currentImageOriginalSize, 0, 0, newWidth, newHeight);
}

currentImage = resizedImage;

and the image I got was more blurry than the one displayed online using HTML (we pulled from the same image source and the web doesn't use an external library. The picture box and the picture element has the same size). Is this a known issue or did I do something wrong?
Was this page helpful?