Results 1 to 4 of 4

Thread: By popular demand: BITBLT() made easy

  1. #1

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Cool By popular demand: BITBLT() made easy

    BitBlt() is by far the most commonly used WIN32 API function in .Net today.

    Since many of you have said you have found it tough to use from within the .Net universe, I have written a wrapper class so you can include simple support for fast graphical operations...

    Its called BlitterChip. (I decided to name it after a famous bit of Atari hardware from the mid 80's ... don't ask )

    Its a simple class, no member variables, no nothing apart from Blit(). Blit() is a set of functions that call a hidden BitBlt() function. There are currently 4 versions of the Blit() function. Each one takes a different list of parameters, they are all suited to different situations.

    I have included a demo project to show how it works. Enjoy.

    Any questions, please PM me

    If you like it, gimme a rating.
    Attached Files Attached Files
    Last edited by wossname; May 12th, 2005 at 06:47 AM.
    I don't live here any more.

  2. #2

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: By popular demand: BITBLT() made easy

    Revised - NOW DOES SCREENGRABS!!

    Usage of new feature:

    VB Code:
    1. 'take a small snapshopt of the start button area...
    2. Dim MyRect As Rectangle = New Rectangle(0, Screen.PrimaryScreen.Bounds.Bottom - 100, 100, 100)
    3. Dim MyPic As Bitmap = BlitterChip.ScreenGrab(MyRect)

    The bitmaps that this function returns can be used like normal.

    Note: MSPaint.exe doesn't like bitmaps when you use Bitmap.Save(...) to save them as BMP files. This is a known problem with MSPaint and should not be a cause for concern
    Attached Files Attached Files
    I don't live here any more.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: By popular demand: BITBLT() made easy

    Note: BlitterChip.vb is simply a text file, with an odd extension, that you can open in Notepad (I was a bit puzzled for a second).

    I have download it and opened it and it is just fine.

  4. #4

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: By popular demand: BITBLT() made easy

    That is the VB.Net standard code file extension. Nothing odd about it. *.vb is already on the forum's recognised OK list anyway.
    I don't live here any more.

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