Results 1 to 6 of 6

Thread: BitBlt? how?

  1. #1

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

    BitBlt? how?

    I'm trying to use bitblt but sounds like it doesnt work
    I have this at the top of my class

    Declare Function BitBlt Lib "gdi32" Alias "BitBlt" (ByVal hDestDC As Integer, ByVal x As Integer, ByVal y As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal hSrcDC As Integer, ByVal xSrc As Integer, ByVal ySrc As Integer, ByVal dwRop As Integer) As Integer

    I just converted all the Longs to Integers
    When I use it, it doesnt do anything
    and for the picturebox's DC I'm just using picturebox.Handle (no idea what I'm doing )
    so why isnt it working? how can I use bitblt?!!!
    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
    New Member
    Join Date
    Mar 2002
    Posts
    10
    we always keep autoredraw property to true while drawing in picturebox,but there is nothing like this in vb.net, you have make a call bitblt it has worked but i beleive your picturebox has not redraws itselft to show the change, fortunately we have an event paint in picture box, which will be fired when a picture repaints itsself, u can place your call to function here and call picture box refresh method to triger this event. i think u should use picturebox.handle.toint32 or some thing like that for dc
    i have not done this, but i think it should work please tell me about result
    Last edited by stunner; Sep 25th, 2002 at 01:58 PM.

  3. #3
    Hyperactive Member
    Join Date
    Feb 2002
    Posts
    261
    Wait, what are you trying to do exactly? Why do you want to use bitblt?

  4. #4

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Hu Flung Dung
    Wait, what are you trying to do exactly? Why do you want to use bitblt?
    well, still cant get it to work
    here's the reason I want to use BitBlt, because .NET is driving me crazy. Read this thread: http://www.vbforums.com/showthread.php?threadid=194652

    I guess you remember that


    just tell me how can I use this "Bit Bee El Tea" function
    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!!

  5. #5
    New Member
    Join Date
    Mar 2002
    Posts
    10
    yes, it should not work, i have tried this, becuse bitblt needs Device Context and i donot have any way to find it,if some one knows please tell me.
    please visit the link it might solve your problem
    http://planetsourcecode.com/vb/scrip...=227&lngWId=10
    Last edited by stunner; Sep 26th, 2002 at 12:30 AM.

  6. #6
    Hyperactive Member
    Join Date
    Feb 2002
    Posts
    261
    Originally posted by MrPolite
    well, still cant get it to work
    here's the reason I want to use BitBlt, because .NET is driving me crazy. Read this thread: http://www.vbforums.com/showthread.php?threadid=194652

    I guess you remember that


    just tell me how can I use this "Bit Bee El Tea" function
    Oh, yeh. I remember.

    Are you using the beta version of the framework? Did you install the framework service pack?

    This is too strange.

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