本文整理汇总了C#中ColorAdjustType类的典型用法代码示例。如果您正苦于以下问题:C# ColorAdjustType类的具体用法?C# ColorAdjustType怎么用?C# ColorAdjustType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ColorAdjustType类属于命名空间,在下文中一共展示了ColorAdjustType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetColorMatrices
public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix gMatrix, ColorMatrixFlag mode, ColorAdjustType type)
{
clrMatrix = newColorMatrix;
this.gMatrix = gMatrix;
clrMatrixFlag = mode;
clrAdjustType = type;
}
示例2: SetColorMatrix
public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag mode, ColorAdjustType type)
{
colorMatrix = newColorMatrix;
colorMatrixFlags = mode;
colorAdjustType = type;
isColorMatrixSet = true;
}
示例3: ClearColorMatrix
/// <summary>
/// Clears the color matrix.
/// </summary>
public void ClearColorMatrix()
{
colorMatrix = null;
colorMatrixFlags = ColorMatrixFlag.Default;
colorAdjustType = ColorAdjustType.Default;
isColorMatrixSet = false;
}
示例4: Reset
Reset(
ColorAdjustType type
)
{
return SetStatus(NativeMethods.GdipResetImageAttributes(
nativeImageAttr,
type));
}
示例5: SetToIdentity
SetToIdentity(
ColorAdjustType type
)
{
return SetStatus(NativeMethods.GdipSetImageAttributesToIdentity(
nativeImageAttr,
type));
}
示例6: ClearNoOp
public GpStatus ClearNoOp(
ColorAdjustType type
)
{
return SetStatus(GdiPlus.GdipSetImageAttributesNoOp(
nativeImageAttr,
type,
false));
}
示例7: ClearNoOp
GpStatus ClearNoOp(
ColorAdjustType type
)
{
return SetStatus(NativeMethods.GdipSetImageAttributesNoOp(
nativeImageAttr,
type,
false));
}
示例8: ClearGamma
GpStatus ClearGamma(
ColorAdjustType type
)
{
return SetStatus(NativeMethods.GdipSetImageAttributesGamma(
nativeImageAttr,
type,
false,
0.0f));
}
示例9: ClearColorKey
GpStatus ClearColorKey(
ColorAdjustType type
)
{
return SetStatus(NativeMethods.GdipSetImageAttributesColorKeys(
nativeImageAttr,
type,
false,
0,
0));
}
示例10: SetColorKey
public GpStatus SetColorKey(
Color colorLow,
Color colorHigh,
ColorAdjustType type
)
{
return SetStatus(NativeMethods.GdipSetImageAttributesColorKeys(
nativeImageAttr,
type,
true,
colorLow.ToArgb(),
colorHigh.ToArgb()));
}
示例11: GetInfo
// Get the attribute information for a specific ColorAdjustType value.
private AttributeInfo GetInfo(ColorAdjustType type)
{
AttributeInfo current = info;
while(current != null)
{
if(current.type == type)
{
return current;
}
current = current.next;
}
info = new AttributeInfo(info, type);
return info;
}
示例12: ClearOutputChannelColorProfile
/// <include file='doc\ImageAttributes.uex' path='docs/doc[@for="ImageAttributes.ClearOutputChannelColorProfile1"]/*' />
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public void ClearOutputChannelColorProfile(ColorAdjustType type)
{
int status = SafeNativeMethods.Gdip.GdipSetImageAttributesOutputChannel(
new HandleRef(this, nativeImageAttributes),
type,
false,
ColorChannelFlag.ColorChannelLast);
if (status != SafeNativeMethods.Gdip.Ok)
throw SafeNativeMethods.Gdip.StatusException(status);
}
示例13: SetOutputChannelColorProfile
/// <include file='doc\ImageAttributes.uex' path='docs/doc[@for="ImageAttributes.SetOutputChannelColorProfile1"]/*' />
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public void SetOutputChannelColorProfile(String colorProfileFilename,
ColorAdjustType type)
{
IntSecurity.DemandReadFileIO(colorProfileFilename);
int status = SafeNativeMethods.Gdip.GdipSetImageAttributesOutputChannelColorProfile(
new HandleRef(this, nativeImageAttributes),
type,
true,
colorProfileFilename);
if (status != SafeNativeMethods.Gdip.Ok)
throw SafeNativeMethods.Gdip.StatusException(status);
}
示例14: SetOutputChannel
/// <include file='doc\ImageAttributes.uex' path='docs/doc[@for="ImageAttributes.SetOutputChannel1"]/*' />
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public void SetOutputChannel(ColorChannelFlag flags, ColorAdjustType type)
{
int status = SafeNativeMethods.Gdip.GdipSetImageAttributesOutputChannel(
new HandleRef(this, nativeImageAttributes),
type,
true,
flags);
if (status != SafeNativeMethods.Gdip.Ok)
throw SafeNativeMethods.Gdip.StatusException(status);
}
示例15: ClearColorKey
/// <include file='doc\ImageAttributes.uex' path='docs/doc[@for="ImageAttributes.ClearColorKey1"]/*' />
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public void ClearColorKey(ColorAdjustType type)
{
int zero = 0;
int status = SafeNativeMethods.Gdip.GdipSetImageAttributesColorKeys(
new HandleRef(this, nativeImageAttributes),
type,
false,
zero,
zero);
if (status != SafeNativeMethods.Gdip.Ok)
throw SafeNativeMethods.Gdip.StatusException(status);
}