Results 1 to 6 of 6

Thread: is AutoRedraw dead?!

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    is AutoRedraw dead?!

    I was looking for AutoRedraw property on the Form, but sounds like it has been vanished
    Any other way of doing autoredraw? I'm drawing lots of little pictures( about 140) on my form, and if I want to redraw everything when Form_Paint fires, it will slow down the app too much...
    what can I do? (should I give up?)
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Lively Member
    Join Date
    Apr 2002
    Posts
    121
    you can use the Refresh method now

  3. #3

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    hmm, are you SURE that works?
    Because I'm drawing a picture on the form, I created a button that REFRESHES the form. If I click it, it will just erase the whole form, it doesn't work like autoredraw
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  4. #4
    Lively Member
    Join Date
    Apr 2002
    Posts
    121
    hmmm... try the Update() method. i bet that's it.

  5. #5
    Sascha
    Guest
    to mimic autoredraw you should keep a bitmap in memory to draw onto. whenever you need to redraw your form you simply copy the area to redraw (see for cliping region) from your bitmap to your form. this is not that hard to implement and is even more efficient then autoredraw.

    maybe got through this:
    http://www.gotdotnet.com/team/window...spainting.aspx

    best regards

    Sascha

  6. #6

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    tnx Psychotron, but that didnt work
    I guess I'm gunno go with what Sascha suggested

    tnx
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width