Quick Search for:  in language:    
DLL,NOTE,BUMP,BLUR,ALPHA,want,adjust,brightne
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,011,557. lines
 Jobs: 115. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Visual Basic.
AniViewer
By Jerrame Hertz on 6/30


Click here to see a screenshot of this code!Raw Packet Sniffer
By Coding Genius on 6/30

(Screen Shot)

Check the support of a record set
By Freebug on 6/30


B++ Builder - VB without runtimes
By Anthonius on 6/30


Mr Blonde - Chat Program
By Mr Blonde on 6/30


MSN Messenger Status Detector
By Ryan Cain on 6/30


MSN advanced
By alias1990 on 6/30


MSN Messenger advanced
By alias1990 on 6/30


Locate Database
By Erica Ziegler-Roberts on 6/30


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



 
 
   

Advanced Graphics Routines 2.2 UPDATED **must see!**

Print
Email
 
winzip icon
Submitted on: 2/17/2001 4:34:07 PM
By: Florian Egel  
Level: Intermediate
User Rating: By 53 Users
Compatibility:VB 4.0 (32-bit), VB 5.0, VB 6.0

Users have accessed this code 22808 times.
 

(About the author)
 
     If you want to adjust the brightness of a picture, rotate a picture with ANTI-ALIASING or AlphaBlend pictures together, maybe using an invisible mask color, and all that in vb and in just milliseconds... then you need this code! I wrote all the calculations in a C++ DLL, because it is much faster and easier to use, you just need a few lines of code to make incredible effects! in the zip-file there is the DLL and a VB-Demo to demonstrate the possibilities and the performance of my dll.<br> <br> NOTE: Version 3.0 is released, go to http://www.planet-source-code.com/vb/scripts/showcode.asp?txtCodeId=21470<br> <br> UPDATED! 2.0: The new package now also includes a VB-Only-Version with the functions from the dll rewritten for VB, so you can use the stuff without the dll! (though the dll is faster than the still fast VB-code, so i would use the dll). I also included a BUMP MAPPING routine a BLUR filter and an IMPROVED ALPHA BLENDING routine.<br> <br> UPDATED! 2.1: Fixed a problem with 16 bit color depth. included MOSAIC filter.<br> <br> UPDATED! 2.2: Added some nice, useful timer- and counter-functions. See demo for description. I Also added a complete DOCUMENTATION of all functions with descriptions of all parameters to help you using my code (see "readme.txt"). <br> <br>Test it and *please* vote for this really useful and good piece of code!<br> <br> NOTE: Version 3.0 is released, go to <a href='http://www.planet-source-code.com/vb/scripts/showcode.asp?txtCodeId=21470'>http://www.planet-source-code.com/vb/scripts/showcode.asp?txtCodeId=21470<br>

 
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 Winzipto 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 4 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 Intermediate 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
2/17/2001 5:32:31 PM:The Author
Hi,
I just wanted to explain why the 
main code is written in C++:
The Code 
doesn't use SetPixel or GetPixel, but 
it still uses many loops and 
calculations, ant it would simply be to 
slow in VB (BUT: I tried the code in 
pure-VB and it is still much faster 
than all comparable codes posted here, 
less then 100ms for processing a 
320x240 picture!!!).
If you want the 
code of the dll or a VB-Version of the 
routines, just let me know.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/17/2001 7:35:04 PM:Kostas D.
Hi Florian. I think i don't have to 
explain why i voted excellent for you. 
I'd like nevertheless to ask you a 
favor and make some suggestions: I have 
made some filters in VB and are really 
slow (eg. Blur,Noise,Contrast etc... ). 
I want to make them in VC++ and 
assembly. I know programming these for 
the last 3 years-not much because i am 
a Database programmer in VB mainly. I 
think your rotate and alpha filters are 
extremely greatfull but brightness may 
need some work (I don't know exactly, 
this is just a suggestion). But, as you 
said, if you don't mind could you 
upload or send me an email of how you 
make in C++ these best rotation filter 
and alphablend? And a last big favor 
and sorry for the large comment. (But 
ok, you are the best in grafix in PSC). 
May, if you have time of course, you 
show me in C++ how to make a quick DLL 
mosaic filter? Because VB grafix are so 
slow even with API.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/17/2001 9:17:09 PM:The Author
Ho, thanks for the praises!
First of 
all, all suggestions are welcome. If 
you have any effects/filters (like a 
good brightness control, contrast, blur 
etc.) feel free to send me the code, 
and i will update the dll.
my email 
address is webmaster@flomix.de.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/18/2001 5:13:34 AM:Night Wolf
Yo, great code. I really like the 
anti-aliasing thingy. Here's a site 
where you can find some great gfx stuff 
done in vb like HUE, blur and much 
more.
www.vbaccelerator.com - look in 
vbMedia.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/18/2001 5:14:54 AM:Night Wolf
Oh yeah can you email me the code in 
vb. Thanks.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/18/2001 5:50:17 AM:Stephan Kirchmaier
Pls. email me the code in VB too.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/18/2001 6:28:48 AM:gain@westerncanada.com
I too would appreciate this in VB code. 
Excellent work !!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/18/2001 9:23:28 AM:farouk
Excellent work..keep it up
if you 
could send me the code in vb
and c++ I 
would be grateful
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/18/2001 10:39:46 AM:Kostas D.
Hi again. Thanks again for your offer 
to construct my VB filters in C++ but 
finally i manage to compile myself a 
non-MFC Win32 DLL using SetP, GetP and 
LineTo (i had made DLLs for DB Apps 
previously) which works fast and fine. 
I also found some good mosaic codes in 
PSC and Vbaccelerator.com (Thankz to 
Night Wolf too). I will upload my work 
with full source code soon. Continue 
your great coding...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/18/2001 12:11:02 PM:Eric
Florian,
Great work, and I 
appreciate your willingness to share 
it. Can you please send me the code in 
C++ and VB. Thanks! 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/18/2001 12:20:43 PM:Florian Egel
Hey, big thanks to all for the good 
feedback! Due to the requests i updated 
the Code: it now contains some new 
functions (better AlphaBlending, Blur 
filter, BumpMapping), and a 
VB-Only-version of the routines. I hope 
this helps.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/18/2001 3:14:00 PM:Ray Hildenbrand
Hello, great post. i did notice one 
thing you might be able to help me 
with, the alpha blend function ( as 
well as the bump) just show a black box 
in this version, but the original 
posting worked correctly on my system. 
any ideas? BTW my layer manager control 
i am developing would really go hand in 
hand with this code. five globes eh
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/18/2001 3:15:53 PM:Ray Hildenbrand
here is the link if you are 
interested.
http://www.planetsourceco
de.com/xq/ASP/txtCodeId.15182/lngWId.1/q
x/vb/scripts/ShowCode.htm
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/19/2001 7:33:37 AM:Florian Egel
It was my mistake, I solved the black 
box problem whith AlphaBlending and 
BumpMapping (the previous code just 
worked with 32 bit color depth, now it 
also supports 16 bit).
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/19/2001 8:21:37 AM:Jeffrey A. Miller
Hello,
Very nice code, extremly 
fast.  Could you please forward me the 
DLL code in C++ & VB.
Thanks
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/19/2001 6:41:06 PM:Hawk78
Hi Florian Egel !
I've got some 
questions about your code. Could you 
please write your e-mail adress for 
contact!?
Thanks
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/19/2001 7:55:46 PM:Florian Egel
sure, my email address 
is
webmaster@flomix.de.
Ask whatever 
you want, i would like to help 
whereever i can. And if you have 
remarks or suggestions feel free to let 
me know, too!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/19/2001 8:29:49 PM:Florian Egel
I just added a pretty cool Demo and a 
complete Documentation of all functions 
with descriptions of all parameters to 
the package, check it out if you like!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/22/2001 8:25:52 AM:J. Owen
Wow, this code is AWESOME! I often 
tried to make such effects, but i never 
got fast results and all other samples 
about this are terribly slow, too, but 
your great code runs real-time even on 
my comp... Congratulations and thanks a 
Lot!
5 Globes, you are really worth it.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/23/2001 8:34:46 AM:Mark Robert Strange
Absolutely Exsquisite. I am very 
interested in the C++ DLL source code, 
I would appreciate it if you could 
email it to me (IMNoPatzer@excite.com). 
Many thanks, 5 Globes all the way.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/26/2001 9:06:18 AM:Guido van Laar
Thanks for sharing your great code, I 
rated you 5 globes.
If possible, I 
would like to receive a copy of the C++ 
dll source code (GvL@Pobox.com).
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/27/2001 11:49:47 PM:dima
Excellent! Really 'MustHave'. Simplest 
VB coding in aggregate with fastest C 
or ASM libraries makes a splendid apps. 
Keep a good work, Florian! My vote is 
'Excellent'.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/3/2001 7:16:03 AM:Florian Egel
PLEASE NOTE: Advanced Graphics Routines 
3.0 is released. look 
at
http://www.planet-source-code.com/xq
/ASP/txtCodeId.21470/lngWId.1/qx/vb/scri
pts/ShowCode.htm
Florian
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/14/2001 10:28:27 AM:Fadi
Man, everyone gets excited to see 
samples. There is no code for the 
actual work! its in a DLL! and it won a 
contest? god people, keep the planet 
clean!
Sorry for this, but I just 
think to win a contest, you should post 
code not samples around a component and 
release the sample only. I gave it poor 
rating till code is posted
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/14/2001 7:43:12 PM:Florian Egel
If you would have looked at the code, 
you would have seen that there is a 
VB-only-version with full source... 
sorry, but your statement is just wrong.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/14/2001 11:07:20 PM:fadi
My mistake, I missed the VB version only
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/15/2001 11:35:34 PM:Roger the Camel
Hey Florian Egel, from what I have read 
in all this feedback ur the man to see 
about graphic effects... well Im 
currently in the process of making a 
game, 2D RPG, kinda like zelda on snes 
but with better looking graphics. Well 
anyway, i want to put some graphic 
effects in that will add to the 
atmosphere of the game and i was 
wondering if ud like to work with me, 
even if its as an advisory role or 
something, anyway, my e-mail is 
grant73@ihug.co.nz, contact me if you 
would like.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/1/2001 9:40:22 AM:Giacomo
Hi Florian, I'm only sorry that my 
limited knowledge of English is not 
enough to express my appreciation (and 
I had only saw version 2.2...non I'm 
going to look for version 3.2).
If I 
do not bother you, I would have a 
question (hope not too silly): which is 
the difference (in coding) between 
Brightness and Saturation control ? I 
wanted to implement them (in VB6) , but 
in my mind the approach seems the 
same.
Thanks anyway
Giacomo
 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/19/2001 1:41:03 AM:Pritesh Sheth
Hi there,
This is Pritesh Sheth from 
India,
First of all, your code is 
GREAT!!.
I am a programmer, developing 
small application, and would like to 
use you .dll, can i use it ? and it 
will be so nice of you if u could send  
me the c++ code so that i can learn how 
things are done.
hey, one thing it 
crashes or leacking memory while 
dealing with big size bitmaps 
(1024*768) specially alphablend.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/19/2001 10:00:32 AM:Florian Egel
I got many mails complaining that the 
dll does not work properly with big 
pictures like 1024x768, but it was not 
designed to. I focused on 
realtime-speed with smaller pictures, 
not on compatibility with large 
pictures. If I would not be so busy, I 
would perhaps write another DLL to do 
these tasks... ;-)
Florian Egel
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/7/2001 12:38:31 PM:Kevin
ooooo can i have the dll too?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/15/2001 5:21:21 PM:Florian Egel
MESSAGE TO ALL:
I know, I ignored 
your requests for the source code for 
the last months and I am very sorry 
about it, but I was really busy and got 
almost no time to go online.
I 
apologize to all of you and uploaded 
the sources to my homepage. You can 
find them 
under
http://www.flomix.de/download/f
oxcbmp_src.zip
Regards,  Florian Egel
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/11/2002 6:08:06 PM:Munky
hey, i would love for you to send me 
the source for the dll file. i hate 
that vb cant do rendering that fast
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/18/2002 9:35:05 AM:
A little speed-up for the main sum in 
the alphablending routine that may be 
worthy of discussion from the DLL 
source, FoxCBmp.cpp 
ShadeColors(...):
      default : 
return 
((((Src&0x0000FF)*(~Shade))>>8)+(((Dst&0
x0000FF)*Shade)>>8))&0x0000FF
|((((Src&0x00FF00)*(~Shade))>>8)+(((Dst&
0x00FF00)*Shade)>>8))&0x00FF00
|((((Src&0xFF0000)*(~Shade))>>8)+(((Dst&
0xFF0000)*Shade)>>8))&0xFF0000;
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/27/2002 9:29:48 AM:
VERY VERY VERY GOOD.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/8/2002 11:35:27 AM:
Excellent work. 
if you 
could send 
me the code in vb
and c++ I 
would be 
grateful
I have 2 version of the DLL 
but not completed
thanks
jean 
borgugnons
jean.borgugnons@skynet.be 
(Belgium)
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.