Re: Error 480 - can't create autoredraw image



autoredraw creates a memory copy of the image, so if a window is covered
then uncovered VB will repaint the image into the control. When autoredraw
is false, the image loaded into the picture box is just drawn on the device
context of the picture box; there is no 'persistent bitmap' of the image so
when you place another window overtop, the picture disappears.

--

Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/

Please reply to the newsgroups so all can participate.




"mayayana" <mayaXXyana1a@xxxxxxxxxxxxxxxx> wrote in message
news:J6LIg.2643$bM.1192@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I'm trying to do a simple crop by
loading a JPG into a picturebox,
then PaintPicture to a second box
with size set to the crop region.

Very simple. It works fine but fails
on certain images. The one picture
I have that fails is 2500 x 1700 pixels
(approx.), from a digital camera. And
other pics saved from the same camera
seem to fail, even though they open
fine in IrfanView or PaintShopPro.

Is the picture just too big? Should I do it
a different way?
(I've never quite grokked what autoredraw
actually does.)


.



Relevant Pages

  • Re: send pictures via email stopped working
    ... The only difference that I can see is that the system that fails has TWO identities and the system that works only has one email account. ... After you click on resize the window ... >> artF wrote: ... It starts the dialog for sizing the picture but never ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: send pictures via email stopped working
    ... and it still fails. ... After you click on resize the window closes and you can ... > starts the dialog for sizing the picture but never starts Outlook> Express ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Page layout for tubie pages on the net Re: Deep Space 845 55WSET amps.
    ... picture on the right ... Just to add a bit of explanation, the viewing browser might have ... browser will then word wrap to the viewer's window. ... in one cell and the text in another. ...
    (rec.audio.tubes)
  • Re: DARPA Grand Challenge
    ... >> I think you are ignoring more than half of the picture. ... >> great success it is. ... > about a baker who has a window broken out by a vandal with a brick. ...
    (comp.robotics.misc)
  • Re: One Thing I Noticed - Line Too Long
    ... > that creating a VB Autoredraw picture box automatically creates a separate ... > because you said it uses too much memory because it creates two bitmaps. ... > create an otherwise non existent bitmap in video card memory! ...
    (microsoft.public.vb.general.discussion)