当前位置: 首页>>代码示例>>C#>>正文


C# ColorAdjustType类代码示例

本文整理汇总了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;
		}
开发者ID:carrie901,项目名称:mono,代码行数:7,代码来源:ImageAttributes.jvm.cs

示例2: SetColorMatrix

 public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag mode, ColorAdjustType type)
 {
     colorMatrix = newColorMatrix;
     colorMatrixFlags = mode;
     colorAdjustType = type;
     isColorMatrixSet = true;
 }
开发者ID:asfungithub,项目名称:sysdrawing-coregraphics,代码行数:7,代码来源:ImageAttributes.cs

示例3: ClearColorMatrix

 /// <summary>
 /// Clears the color matrix.
 /// </summary>
 public void ClearColorMatrix()
 {
     colorMatrix = null;
     colorMatrixFlags = ColorMatrixFlag.Default;
     colorAdjustType = ColorAdjustType.Default;
     isColorMatrixSet = false;
 }
开发者ID:asfungithub,项目名称:sysdrawing-coregraphics,代码行数:10,代码来源:ImageAttributes.cs

示例4: Reset

 Reset(
     ColorAdjustType type
     )
 {
     return SetStatus(NativeMethods.GdipResetImageAttributes(
                                         nativeImageAttr,
                                         type));
 }
开发者ID:intille,项目名称:mitessoftware,代码行数:8,代码来源:ImageAttributesPlus.cs

示例5: SetToIdentity

 SetToIdentity(
     ColorAdjustType type
     )
 {
     return SetStatus(NativeMethods.GdipSetImageAttributesToIdentity(
                                         nativeImageAttr,
                                         type));
 }
开发者ID:intille,项目名称:mitessoftware,代码行数:8,代码来源:ImageAttributesPlus.cs

示例6: ClearNoOp

 public GpStatus ClearNoOp(
     ColorAdjustType type
     )
 {
     return SetStatus(GdiPlus.GdipSetImageAttributesNoOp(
                                         nativeImageAttr,
                                         type,
                                         false));
 }
开发者ID:north0808,项目名称:haina,代码行数:9,代码来源:ImageAttributesPlus.cs

示例7: ClearNoOp

 GpStatus ClearNoOp(
     ColorAdjustType type
     )
 {
     return SetStatus(NativeMethods.GdipSetImageAttributesNoOp(
                                         nativeImageAttr,
                                         type,
                                         false));
 }
开发者ID:misiek,项目名称:foo,代码行数:9,代码来源:ImageAttributesPlus.cs

示例8: ClearGamma

 GpStatus ClearGamma(
     ColorAdjustType type
     )
 {
     return SetStatus(NativeMethods.GdipSetImageAttributesGamma(
                                         nativeImageAttr,
                                         type,
                                         false,
                                         0.0f));
 }
开发者ID:misiek,项目名称:foo,代码行数:10,代码来源:ImageAttributesPlus.cs

示例9: ClearColorKey

 GpStatus ClearColorKey(
     ColorAdjustType type
     )
 {
     return SetStatus(NativeMethods.GdipSetImageAttributesColorKeys(
                                         nativeImageAttr,
                                         type,
                                         false,
                                         0,
                                         0));
 }
开发者ID:misiek,项目名称:foo,代码行数:11,代码来源:ImageAttributesPlus.cs

示例10: SetColorKey

 public GpStatus SetColorKey(
      Color colorLow,
      Color colorHigh,
     ColorAdjustType type
     )
 {
     return SetStatus(NativeMethods.GdipSetImageAttributesColorKeys(
                                         nativeImageAttr,
                                         type,
                                         true,
                                         colorLow.ToArgb(),
                                         colorHigh.ToArgb()));
 }
开发者ID:misiek,项目名称:foo,代码行数:13,代码来源:ImageAttributesPlus.cs

示例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;
			}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:15,代码来源:ImageAttributes.cs

示例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);
        }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:15,代码来源:ImageAttributes.cs

示例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);
        }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:18,代码来源:ImageAttributes.cs

示例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);
     }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:15,代码来源:ImageAttributes.cs

示例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);
            }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:17,代码来源:ImageAttributes.cs


注:本文中的ColorAdjustType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。