Bitmaps & Images Routines
Updated Monday December 26, 2011
   
Category
Topic
Images
vb6
vb5
vb4-32
CreateCompatibleBitmap: Create a Transparent Bitmap
APIs & code to convert a bitmap into a transparent bitmap.

ExtFloodFill: Fill Polygonal Regions
Create a child's drawing app using one API.  Jan 16, 2001

SetPixelV: Manipulate Picture Box Image Brightness
Quick routine for changing the brightness of an picture box image.  Jan 16, 2001

Pure VB: Obtaining Bitmap File Info Without APIs
Using binary file access, read the BITMAPFILEHEADER and BITMAPINFOHEADER structures of a file to obtain the image details.



Menus
vb6 vb5
vb4-32
SetMenuItemInfo: Using Radio Buttons Instead of Menu Checkmarks
When you offer several choices in a menu, you may want to implement a radio button-style selection. This routine handles menus on any form or position on the menu bar. Updated Jan 25.2000


Screen
vb6
vb5
vb4-32
OleCreatePictureIndirect: Mimicking PrintScreen Using OLE
How to use the OLE interface to generate a PrintScreen routine in your application.

BitBlt: Mimicking the PrintScreen Function
How to implement the BitBlt API to mimic a PrintScreen routine in your application.

BitBlt: Mimicking PrintScreen to Create a 'PrintForm'
Extending the PrintScreen code to add Print Form and Print Any Window capabilities.

keybd_event: Calling Windows' PrintScreen Function
The API call to actually capture the screen to the clipboard.



Tiling
vb6
vb5
vb4-32
BitBlt: Present a Non-Selectable 'No Data' Picture in a ListBox
Simulate some of the listview's LVBKIMAGE functionality in a list box.  Nov 29.2003

Pure VB: Tile an Image as a Form Background
How to tile an image across the background of any form (except MDI parents). No APIs needed.



 

 
 

PayPal Link
Make payments with PayPal - it's fast, free and secure!

 
 
 
 

Copyright ©1996-2011 VBnet and Randy Birch. All Rights Reserved.
Terms of Use  |  Your Privacy

 

Hit Counter