Set sculpt map alpha to 255 prior to scaling and meshing. Addresses Mantis #3150

0.6.3-post-fixes
Dahlia Trimble 2009-02-15 04:00:00 +00:00
parent 7ea2812a9e
commit 7731c055e4
1 changed files with 8 additions and 0 deletions

View File

@ -59,6 +59,14 @@ namespace PrimMesher
int destWidth = (int)(srcImage.Width * scale);
int destHeight = (int)(srcImage.Height * scale);
if (srcImage.PixelFormat == PixelFormat.Format32bppArgb)
for (int y = 0; y < srcImage.Height; y++)
for (int x = 0; x < srcImage.Width; x++)
{
Color c = srcImage.GetPixel(x, y);
srcImage.SetPixel(x, y, Color.FromArgb(255, c.R, c.G, c.B));
}
Bitmap scaledImage = new Bitmap(destWidth, destHeight,
PixelFormat.Format24bppRgb);
scaledImage.SetResolution(srcImage.HorizontalResolution,