• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ColorAdjustType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ColorAdjustType的典型用法代码示例。如果您正苦于以下问题:C# ColorAdjustType类的具体用法?C# ColorAdjustType怎么用?C# ColorAdjustType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ColorAdjustType类属于命名空间,在下文中一共展示了ColorAdjustType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: GdipSetImageAttributesThreshold

 internal static extern GpStatus GdipSetImageAttributesThreshold(GpImageAttributes imageattr,
            ColorAdjustType type,
            bool enableFlag,
            float threshold);
开发者ID:Radytz,项目名称:DroppedBoxx,代码行数:4,代码来源:ImageAttributes.cs


示例17: GdipSetImageAttributesGamma

 internal static extern GpStatus GdipSetImageAttributesGamma(GpImageAttributes imageattr,
        ColorAdjustType type,
        bool enableFlag,
        float gamma);
开发者ID:Radytz,项目名称:DroppedBoxx,代码行数:4,代码来源:ImageAttributes.cs


示例18: GdipResetImageAttributes

 internal static extern GpStatus GdipResetImageAttributes(GpImageAttributes imageattr,
     ColorAdjustType type);
开发者ID:Radytz,项目名称:DroppedBoxx,代码行数:2,代码来源:ImageAttributes.cs


示例19: GetAdjustedPalette

 /// <include file='doc\ImageAttributes.uex' path='docs/doc[@for="ImageAttributes.GetAdjustedPalette"]/*' />
 /// <devdoc>
 ///    <para>[To be supplied.]</para>
 /// </devdoc>
 public void GetAdjustedPalette(ColorPalette palette, ColorAdjustType type)
 {
     // does inplace adjustment
     IntPtr memory = palette.ConvertToMemory();
     try {
         int status = SafeNativeMethods.Gdip.GdipGetImageAttributesAdjustedPalette(
                             new HandleRef(this, nativeImageAttributes), new HandleRef(null, memory), type);
                                         
         if (status != SafeNativeMethods.Gdip.Ok) {
             throw SafeNativeMethods.Gdip.StatusException(status);
         }
         palette.ConvertFromMemory(memory);
     } finally {
         if(memory != IntPtr.Zero) {
             Marshal.FreeHGlobal(memory);
         }
     }
 }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:22,代码来源:ImageAttributes.cs


示例20: SetRemapTable

        /// <include file='doc\ImageAttributes.uex' path='docs/doc[@for="ImageAttributes.SetRemapTable1"]/*' />
        /// <devdoc>
        ///    <para>[To be supplied.]</para>
        /// </devdoc>
        public void SetRemapTable(ColorMap[] map, ColorAdjustType type) {
            int index = 0;
            int mapSize = map.Length;
            int size = 4; // Marshal.SizeOf(index.GetType());
            IntPtr memory = Marshal.AllocHGlobal(checked(mapSize*size*2));

            try {
                for (index=0; index<mapSize; index++) {
                    Marshal.StructureToPtr(map[index].OldColor.ToArgb(), (IntPtr)((long)memory+index*size*2), false);
                    Marshal.StructureToPtr(map[index].NewColor.ToArgb(), (IntPtr)((long)memory+index*size*2+size), false);
                }

                int status = SafeNativeMethods.Gdip.GdipSetImageAttributesRemapTable(
                    new HandleRef(this, nativeImageAttributes),
                    type,
                    true,
                    mapSize,
                    new HandleRef(null, memory));

                if (status != SafeNativeMethods.Gdip.Ok) {
                    throw SafeNativeMethods.Gdip.StatusException(status);
                }
            }
            finally {
                Marshal.FreeHGlobal(memory);
            }
        }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:31,代码来源:ImageAttributes.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ColorBGRA类代码示例发布时间:2022-05-24
下一篇:
C# Color4类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap