fundinglpo.blogg.se

Print a jpg out at a to be specific width in windows 10
Print a jpg out at a to be specific width in windows 10







print a jpg out at a to be specific width in windows 10 print a jpg out at a to be specific width in windows 10

Graphics.DrawImage(image, destRect, 0, 0, image.Width,image.Height, GraphicsUnit.Pixel, wrapMode)

print a jpg out at a to be specific width in windows 10

WrapMode.SetWrapMode(WrapMode.TileFlipXY) Using (var wrapMode = new ImageAttributes()) Graphics.PixelOffsetMode = PixelOffsetMode.HighQuality Graphics.SmoothingMode = SmoothingMode.HighQuality Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic Graphics.CompositingQuality = CompositingQuality.HighQuality Graphics.CompositingMode = CompositingMode.SourceCopy Using (var graphics = Graphics.FromImage(destImage)) Var destImage = new Bitmap(width, height) ĭestImage.SetResolution(image.HorizontalResolution, image.VerticalResolution) Var destRect = new Rectangle(0, 0, width, height) Public static Bitmap ResizeImage(Image image, int width, int height) / Resize the image to the specified width and height. This will perform a high quality resize: ///









Print a jpg out at a to be specific width in windows 10