VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Auto form shap

by WXJ_Lake (3 Submissions)
Category: Graphics
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (29 Votes)

You just need to set a background picture for the form and specify a transparent color, and then the progrm will make up all for you. It will scan the picture, get rid of the transparent color pixels,generate rect region for every line and combine them. Finally the form will be set to exactly the same shap as the picture outline. Don't worry abuot the speed, it's always less than 1sec (but don't tell me you are running win95 on 486 ^_^).

Note it only support 8bits bitmap now, if you want to extend the program's ability, please reference the MSDN for discuss about pixel format. There are also some win2k api declaration included for making translucent form, just remove the relevant code if you don't need the effect or dont't have a win2k.

----------------------------------------

Hello man, i have updated this program to support every pixel formats, taking the advantage of the windows DIB. Special thanks www.vbaccelerator.com for their great class - "cDIBSection.cls".

Rate Auto form shap

Download Auto form shap

Download Auto form shap (53 KB)

Auto form shap Comments

No comments have been posted about Auto form shap. Why not be the first to post a comment about Auto form shap.

Post your comment

Subject:
Message:
0/1000 characters