jhergens

Results 8 issues of jhergens

Setting Graphics.ImageInterpolationMode has no effect. The following code: ``` var target = new Bitmap(100, 100); using (var g = Graphics.FromImage(target)) { g.Clear(Color.Red); g.PixelOffsetMode = PixelOffsetMode.Half; g.InterpolationMode = InterpolationMode.NearestNeighbor; var bmp...

The DrawString method clips text. At least for some fonts. The following code: ``` using var font = new Font("Liberation Sans", 11f, GraphicsUnit.Pixel); using var backBuffer = new Bitmap(50, 80);...

Rendering text with StringTrimming.EllipsisCharacter and StringFormatFlags.NoWrap does not render any ellipsis. The following code: ``` using var font = new Font("Arial", 11f, GraphicsUnit.Pixel); using var backBuffer = new Bitmap(100, 35);...

In the documentation of the MeasureString method it says it "includes a small amount of extra space before and after the string". This does not seem to be true for...

When drawing images with image attributes having wrap mode set to WrapMode.TileFlipXY, the image is sometimes repeated outside the destination rectangle. Seems a bit random when this happens and if...

When rendering an image where either the width or height of the source and destination rectangles are the same, no scaling will occur even if the rectangles differ in the...

GdipDrawImagePointsRect does not take any existing transformation in the graphics object into account. The following code: ``` var bitmap = new Bitmap(1000, 1000); using (var graphics = Graphics.FromImage(bitmap)) { graphics.ScaleTransform(10,...

Graphics.DrawImage with ImageAttributes for transparency does not work with 24bpp bitmaps. The alpha values are just multiplied into the color, and you end up with a dark image. The below...