| |  |    | 
		
			|  |   |   
 | | 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 |    |  |  |  |  | Your Vote! |  | See Voting Log |  |  |  | Other User Comments |  | 2/27/2002 4:42:09 PM:Jared Bruni 
 great job on the changes  
 
 |  | 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. 
 
 |  |  |    | 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.
 
 |  |  |  
 | 
 
 
 |