Hard code scaled image resolution to 96 dpi prior to sculpt meshing to prevent a mono 2.4 failure. Thanks to cmickeyb for pointing out the failure.

0.6.5-rc1
Dahlia Trimble 2009-04-01 18:38:51 +00:00
parent 99cfcf405b
commit 8493123629
1 changed files with 2 additions and 2 deletions

View File

@ -69,8 +69,8 @@ namespace PrimMesher
Bitmap scaledImage = new Bitmap(destWidth, destHeight, Bitmap scaledImage = new Bitmap(destWidth, destHeight,
PixelFormat.Format24bppRgb); PixelFormat.Format24bppRgb);
scaledImage.SetResolution(srcImage.HorizontalResolution,
srcImage.VerticalResolution); scaledImage.SetResolution(96.0f, 96.0f);
Graphics grPhoto = Graphics.FromImage(scaledImage); Graphics grPhoto = Graphics.FromImage(scaledImage);
grPhoto.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Bilinear; grPhoto.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Bilinear;