For Programmers: Free Programming Magazines  


Home > Archive > C# > July 2005 > Re: Graphics.DrawImage consuming more memory ???









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Graphics.DrawImage consuming more memory ???
Adam

2005-07-24, 8:51 pm

This problem, and a link to a fix, is described in Mark Mullin's blog:

http://tinyurl.com/aaw62


Aravind wrote:
> I am trying to create a image object out of a bitmap file like
> Image img = new Bitmap(@"c-\CurDisplayImage.bmp"); ,I found the memory
> of the process is increased twice as the bitmap size , for example if I
> load a 50MB bitmap the memory is increased by 100MB ,
> Also when I draw the image with e.Graphics.DrawImage ,the Peak memory
> is reaching to several hundred MB , so when I am dealing with some high
> resolution image I am often getting out of memory exception . Any way
> to solve this issue ??
>
> Thanks in Advance
>
> Regards
> Aravind.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com