K
KK
Hi Guru's
I'm making a Image viewer have a lasso loop functionality
for zooming a particular section of image.
The picturebox contains a given image and using the mouse
the user draws a rectangle on the picturebox the
corresponding co-ordinates are cut out from the image and
strechted on the picturebox. This is fine for the 1st
time but when I want to store the new piece of image
using the Bitmap.Clone
m_ImgCopy = m_Img.Clone(new Rectangle(X,Y,iWidth,iHt),
m_Img.PixelFormat);
Cloning gives "Out of memory" exception for any X,Y > 0
co-ordinates, height and width do not spill over the
bounds.
Any other way of creating a copy for part of the original
image? Pls Help
TIA
KK
I'm making a Image viewer have a lasso loop functionality
for zooming a particular section of image.
The picturebox contains a given image and using the mouse
the user draws a rectangle on the picturebox the
corresponding co-ordinates are cut out from the image and
strechted on the picturebox. This is fine for the 1st
time but when I want to store the new piece of image
using the Bitmap.Clone
m_ImgCopy = m_Img.Clone(new Rectangle(X,Y,iWidth,iHt),
m_Img.PixelFormat);
Cloning gives "Out of memory" exception for any X,Y > 0
co-ordinates, height and width do not spill over the
bounds.
Any other way of creating a copy for part of the original
image? Pls Help
TIA
KK