http://www.mitov.com/wiki/index.php?title=Method_function_IGDIPlus.IGPImageAttributes.Reset(TGPColorAdjustType)_:_TGPImageAttributes&feed=atom&action=historyMethod function IGDIPlus.IGPImageAttributes.Reset(TGPColorAdjustType) : TGPImageAttributes - Revision history2024-03-28T21:31:38ZRevision history for this page on the wikiMediaWiki 1.17.0http://www.mitov.com/wiki/index.php?title=Method_function_IGDIPlus.IGPImageAttributes.Reset(TGPColorAdjustType)_:_TGPImageAttributes&diff=11328&oldid=prevDavid Alm: Automated Syncronization with Documentation2012-10-18T17:18:42Z<p>Automated Syncronization with Documentation</p>
<p><b>New page</b></p><div><b><span style="color:red"><br />
This is a Beta Read Only version of this page. <br />
Please review and send recommendations to [mailto:mitov@mitov.com mitov@mitov.com]. <br />
We will enable the editing as soon as we are happy with the overall Wiki site.<br />
</span></b><br />
<br />
'''Class:''' [[Interface IGDIPlus.IGPImageAttributes|IGPImageAttributes]]<br />
<br />
== Syntax ==<br />
=== Delphi: ===<br />
<code><br />
'''function''' Reset( type_ : [[Enum IGDIPlus.TGPColorAdjustType|TGPColorAdjustType]] ) : [[Class IGDIPlus.TGPImageAttributes|TGPImageAttributes]];<br />
</code><br />
<br />
=== C++ Builder: ===<br />
<code><br />
[[Class IGDIPlus.TGPImageAttributes|TGPImageAttributes]] '''__fastcall''' Reset( [[Enum IGDIPlus.TGPColorAdjustType|TGPColorAdjustType]] type_ );<br />
</code><br />
<br />
=== Visual C++ (MFC): ===<br />
<code><br />
Reset( type_ );<br />
</code><br />
<br />
== Summary ==<br />
Clears all color- and grayscale-adjustment settings for a specified category. <br />
<br />
== Description ==<br />
Call this method to clear all color- and grayscale-adjustment<br />
settings for a specified category.<br />
Remarks<br />
An [[Class IGDIPlus.TGPImageAttributes|TGPImageAttributes]] object maintains color and grayscale<br />
settings for five adjustment categories: default, bitmap,<br />
brush, pen, and text. For example, you can specify a gamma<br />
value for the default category, a different gamma value for<br />
the bitmap category, and still a different gamma value for<br />
the pen category.<br />
<br />
<br />
<br />
The default color- and grayscale-adjustment settings apply to<br />
all categories that don't have adjustment settings of their<br />
own. For example, if you never specify any adjustment<br />
settings for the pen category, then the default settings<br />
apply to the pen category.<br />
<br />
<br />
<br />
As soon as you specify a color- or grayscale-adjustment<br />
setting for a certain category, the default adjustment<br />
settings no longer apply to that category. You can reinstate<br />
the default settings for that category by calling Reset. For<br />
example, suppose you specify a gamma value for the default<br />
category. If you set the gamma value for the pen category by<br />
calling [[Method function IGDIPlus.IGPImageAttributes.SetGamma(Single;TGPColorAdjustType) : TGPImageAttributes|SetGamma]], then the default gamma value will not apply<br />
to pens. If you later pass [[Enum item IGDIPlus.TGPColorAdjustType.ColorAdjustTypePen|ColorAdjustTypePen]] to the Reset<br />
method, the pen category will revert to the default gamma<br />
value.</div>David Alm