Edge Scan

Posted On 2017-07-19 by BlackBeltVB
Tags: VB6 Miscellaneous 
Views: 101

Title Uploaded Size
EDGESCAN.ZIP 7/19/2017 8:00:03 AM 50,384

Scan for the edge of a bitmap to create a transparent region. Scans the edge of a bitmap and creates a polygon region. Use it to create odd-shaped forms. It does not scan for "internal" transparent areas - only the edge. The background color needs to be unique. Also shows how to allow form dragging without a caption. 

EdgeScan Demo

Special Instructions

Uses the following API functions:

  • CreatePolygonRgn
  • DeleteObject
  • GetPixel
  • ReleaseCapture
  • SendMessage
  • SetPixel
  • SetWindowRgn


This code originally appeared on BlackBeltVB.com, and has been republished here with the permission of Matt Hart.

About the Author

has posted a total of 89 articles.

Comments On This Post

No comments on this post yet!

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.

Your IP address is:

Before you can post, you need to prove you are human. If you log in, this test goes away.

Code Links