SDK,extension,MasterGraphic,MasterX,With,conv
Quick Search for: in language:   
SDK,extension,MasterGraphic,MasterX,With,conv
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
C/ C++ Stats

 Code: 335,380 lines
 Jobs: 953 postings

 

You are in:

 
Login


Latest Code Ticker for C/ C++
divide.cpp
By Eric Lim on 3/6


randoms.cpp
By Eric Lim on 3/6


Click here to see a screenshot of this code!autoshutdown
By Dao Hai Nam on 3/6

(Screen Shot)

Gui Attempt
By Ograbah on 3/6


nm_string - a string class
By Dan Anderson on 3/6


OO Database Example
By Jonathan Dumas on 3/5


ScreenSaver (turbo c++) Cool :)
By Josh Nixon on 3/5


Simulating a Supermarket using a Queue
By Marco Chen on 3/5


Queue using linked lists
By Marco Chen on 3/5


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



 
 

 
 

   

MasterGraphicEx

Print
Email
 
VB icon
Submitted on: 2/27/2002 4:28:07 PM
By: Dan Anderson  
Level: Advanced
User Rating: By 3 Users
Compatibility:Microsoft Visual C++

Users have accessed this code 289 times.
 
 
     This is an extension of the MasterGraphic in the MasterX SDK. With MasterGraphicEx, you can convert to grayscale, to complement, darken, brighten, scale, clip to a rectangle and balance the color. This adds a lot of functionality to MasterGraphic. Note that for this to work, you need to define MasterGraphic's private section as protected. I modified MasterX.cpp a little because it was crashing too much, but that should have no consequence to implementation of MasterGraphicEx.
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
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 langauges 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.

//**************************************
//     
// Name: MasterGraphicEx
// Description:This is an extension of t
//     he MasterGraphic in the MasterX SDK. Wit
//     h MasterGraphicEx, you can convert to gr
//     ayscale, to complement, darken, brighten
//     , scale, clip to a rectangle and balance
//     the color. This adds a lot of functional
//     ity to MasterGraphic. Note that for this
//     to work, you need to define MasterGraphi
//     c's private section as protected. I modi
//     fied MasterX.cpp a little because it was
//     crashing too much, but that should have 
//     no consequence to implementation of Mast
//     erGraphicEx.
// By: Dan Anderson
//
//This code is copyrighted and has// limited warranties.Please see http://
//     www.Planet-Source-Code.com/xq/ASP/txtCod
//     eId.3373/lngWId.3/qx/vb/scripts/ShowCode
//     .htm//for details.//**************************************
//     

Download the code at 
http://www.garagegaming.com/windows/mgex.zip
<A HREF=http://www.garagegaming.com/windows/mgex.zip>Click here!</A>


Other 3 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 codewith your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
2/27/2002 4:42:09 PM:Jared Bruni
great job on the changes 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/27/2002 6:29:42 PM:Dan Anderson
thanks... if anyone comes across any 
types of color problems let me know. 
these direct draw surfaces are a 
headache to deal with sometimes. i may 
have forgot to mention that the filters 
are not applied to the transparent 
color, so that is cool.
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 | C/ C++ 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.