Open GoogleCodeExporter opened 8 years ago
Hello,
There is a working code for us (change is applied to KalikoImage.cs):
public void LoadImage(string fileName)
{
_image = ConvertImage(Image.FromFile(fileName));
_g = Graphics.FromImage(_image);
}
public void LoadImage(Stream stream)
{
_image = ConvertImage(Image.FromStream(stream));
_g = Graphics.FromImage(_image);
}
/// <summary>
/// Convert image to truecolor
/// </summary>
private Image ConvertImage(Image image)
{
using (image)
using (Bitmap bitmap = new Bitmap(image))
return new Bitmap(bitmap);
}
Original comment by wojciech...@7digital.com
on 25 Feb 2013 at 5:02
Original comment by fr3dr...@gmail.com
on 25 Feb 2013 at 8:30
Original issue reported on code.google.com by
wojciech...@7digital.com
on 25 Feb 2013 at 2:51