Quick Search for:  in language:    
GFX,CODE,ICT,SMALL,wanted,something,with,spec
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,290,928. lines
 Jobs: 207. postings

 How to support the site

 
Sponsored by:

 
You are in:
 

Does your code think in ink?
Login





Latest Code Ticker for Visual Basic.
Click here to see a screenshot of this code!How to use 32 Bit Icons in a VB App
By Zpage on 12/30

(Screen Shot)

Click here to see a screenshot of this code!Database Film's with ListBox
By Diego Cortiñas on 12/30

(Screen Shot)

Click here to see a screenshot of this code!MP3 class with ID3v2 and ID3v1 support
By Vesa Piittinen on 12/30

(Screen Shot)

Control By Browser
By Priyan R on 12/30


Stealth Exchange SFX
By dvchaos on 12/30


Click here to see a screenshot of this code!Mini Tetris
By Code Toad on 12/30

(Screen Shot)

Click here to see a screenshot of this code!NTMessager Network Message Utility
By B.Cem HANER on 12/30

(Screen Shot)

Math-Game
By Angelica Courtin on 12/30


Click here to see a screenshot of this code!Encryptor Xor Version 3
By DISTS on 12/30

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!

Affiliate Sites



 
 
   

Drop Shadow

Print
Email
 
winzip icon
Submitted on: 11/28/2003 3:19:58 PM
By: Mad Compie 
Level: Advanced
User Rating: By 9 Users
Compatibility:VB 6.0

Users have accessed this code 910 times.
 

(About the author)
 
     I wanted to do something with special FX, like real dropshadow FX like in Photoshop or PaintShopPro. Nobody could answer my questions at www.vbforums.com, only "Cyborg" gave me some usefuladvice about the blending parts. (tx...) Now, the GFX part has already been coded and works fine & fast. Very fast! Very very fast!!! SIMPLE CODE!!! NO DIRECTX!!! TRANSPARENCY!!! TRANSLUCENCY!!! This is a preliminary project with goals to maintain a company's ICT infrastructure. It also includes: hover buttons with special FX (in software, very fast!), SysTray handling, irregular forms, texturing, ... SMALL CODE!!!

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 2 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
11/28/2003 5:35:05 PM:Light Templer
Hi Mad Compie, thats really impressive! 
Look for this for a long time!!! Thx 
for sharing and 5 from me - LiTe
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/28/2003 5:44:09 PM:Light Templer
Just had a closer look (thx for well 
commenting!). Folks: No OCX, no GDI+! 
Just pure VB! Its fast and there is 
potential to speedup the loops. I like 
it! LiTe
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/28/2003 6:29:22 PM:Aki
LiTe wrote: "Its fast"
I don't think 
so
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/29/2003 2:46:51 AM:Mad Compie
Hm, Aki: it is fast!
I.e. I measured 
the ticks for a transparent addition of 
an image into another image: it's 
remarkably faster than Win98's 
TransparentBlt() and other TransBlt 
routines using BitBlt. Only for very 
large transparent images it will be a 
bit slower.
Tx for voting guys!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/29/2003 2:53:35 AM:Mad Compie
This is a fact, because the algorithms 
are performed with arrays of values and 
memory copying, not with pixel 
routines!
For an explanation of DIB 
sections, please go to 
[url]wwww.vbaccelerator.com[/url].
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/29/2003 12:27:38 PM:Light Templer
Hmmm, imho some repeated calcs can be 
put out of the loops. Using ElseIf and 
other "speed tricks" can speedup 
things, too. We will see ... ;) LiTe
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/29/2003 7:52:26 PM:Aki
I don't know what is for you fast but 
to display a sentences "Just a test" & 
"ICT builder" on my "slow" P3 650 with 
256 Mb RAM took 1.2 seconds and the 
best result was 1 sec with 100% use of 
my CPU.
Just imagine testing it with 
more letters.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/30/2003 8:46:32 AM:Mad Compie
Hum, Aki, you'll have to compile it 
into a .exe to see the HUGE 
difference!
Example:
Display a 
larger text (Tahoma, 48):
T = 
GetTickCount
  DrawDSText Me.hDC, 
"This is a larger text", 30, 240, 
vbBlack, vbBlack, FXDS_ShadowDepth9, 
"Tahoma", 48, True
  MsgBox "" & 
GetTickCount - T & 
"ms"
Results:
Tested on a 
PentiumIII@450MHz/128RAM:
If not 
compiled, it will be executed @9524ms 
(this is almost 10seconds!)
When 
compiled, it only takes 330ms!!!
I.e. 
almost 29 times faster!!!
T = 
GetTickCount
  DrawDSText Me.hDC, 
"This is a larger text", 30, 240, 
vbBlack, vbBlack, FXDS_ShadowDepth9, 
"Tahoma", 48, True
  MsgBox "" & 
GetTickCount - T & "ms"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/30/2003 9:22:32 PM:Aki
When compiled its fast, as you 
mentioned.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.