public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag mode, ColorAdjustType type) { colorMatrix = newColorMatrix; colorMatrixFlags = mode; colorAdjustType = type; isColorMatrixSet = true; }
/// <summary> /// Clears the color matrix. /// </summary> public void ClearColorMatrix() { colorMatrix = null; colorMatrixFlags = ColorMatrixFlag.Default; colorAdjustType = ColorAdjustType.Default; isColorMatrixSet = false; }
private static WatcherIssuer CallClass(TagTestItem first, CodeIteratorMapping reg, IdentifierClientBridge util, ConfigurationIssuer col2) { //Discarded unreachable code: IL_0002 //IL_0003: Incompatible stack heights: 0 vs 1 ColorMatrixFlag colorMatrixFlag = reg?._0001() ?? ((ColorMatrixFlag)0); DecoratorReaderMapper obj = (DecoratorReaderMapper)col2; string text = first._0001().ToString(); WatcherIssuer watcherIssuer = obj.DisableRequest(text, StringComparison.Ordinal); if (watcherIssuer != null) { switch (colorMatrixFlag) { case (ColorMatrixFlag)1: return(null); case (ColorMatrixFlag)2: throw ContextError.CheckComposer(first, "Property with the name '{0}' already exists in the current JSON object.".ListReader(CultureInfo.InvariantCulture, text)); } } WatcherIssuer watcherIssuer2 = new WatcherIssuer(text); watcherIssuer2.TestClass(util, reg); if (watcherIssuer == null) { col2.Add(watcherIssuer2); } else { watcherIssuer.DestroyClass(watcherIssuer2); } return(watcherIssuer2); }
public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix gMatrix, ColorMatrixFlag mode, ColorAdjustType type) { clrMatrix = newColorMatrix; this.gMatrix = gMatrix; clrMatrixFlag = mode; clrAdjustType = type; }
public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, ColorMatrixFlag flags) { SetColorMatrices(newColorMatrix, grayMatrix, flags, ColorAdjustType.Default); }
public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag mode, ColorAdjustType type) { AttributeInfo info = GetInfo(type); info.colorMatrix = newColorMatrix; info.matrixFlags = mode; }
public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag mode, ColorAdjustType type) { int status = SafeNativeMethods.Gdip.GdipSetImageAttributesColorMatrix(new HandleRef(this, this.nativeImageAttributes), type, true, newColorMatrix, null, mode); if (status != 0) { throw SafeNativeMethods.Gdip.StatusException(status); } }
public CodeIteratorMapping() { //Discarded unreachable code: IL_0002, IL_0006 //IL_0003: Incompatible stack heights: 0 vs 1 //IL_0007: Incompatible stack heights: 0 vs 1 SingletonReader.PushGlobal(); base._002Ector(); identifierIssuer = (ResourceDictionaryLocation)1; _SystemIssuer = (XlOLEVerb)0; getterIssuer = (ColorMatrixFlag)0; }
public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, ColorMatrixFlag flags, ColorAdjustType type) { AttributeInfo info = GetInfo(type); info.colorMatrix = newColorMatrix; info.grayMatrix = grayMatrix; info.matrixFlags = flags; }
public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag mode, ColorAdjustType type) { IntPtr cm = ColorMatrix.Alloc(newColorMatrix); try { Status status = GDIPlus.GdipSetImageAttributesColorMatrix(nativeImageAttr, type, true, cm, IntPtr.Zero, mode); GDIPlus.CheckStatus(status); } finally { ColorMatrix.Free(cm); } }
internal static int GdipSetImageAttributesColorMatrix(HandleRef imageattr, ColorAdjustType type, bool enableFlag, ColorMatrix colorMatrix, ColorMatrix grayMatrix, ColorMatrixFlag flags) => GdipSetImageAttributesColorMatrix_ptr.Delegate(imageattr, type, enableFlag, colorMatrix, grayMatrix, flags);
/// <include file='doc\ImageAttributes.uex' path='docs/doc[@for="ImageAttributes.SetColorMatrices2"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, ColorMatrixFlag mode, ColorAdjustType type) { int status = SafeNativeMethods.Gdip.GdipSetImageAttributesColorMatrix( new HandleRef(this, nativeImageAttributes), type, true, newColorMatrix, grayMatrix, mode); if (status != SafeNativeMethods.Gdip.Ok) throw SafeNativeMethods.Gdip.StatusException(status); }
public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, ColorMatrixFlag mode, ColorAdjustType type) { }
public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag flags) { }
public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag flags) {}
public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, ColorMatrixFlag flags) {}
public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, ColorMatrixFlag mode, ColorAdjustType type) {}
public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, ColorMatrixFlag mode, ColorAdjustType type) { Status status; IntPtr cm = ColorMatrix.Alloc(newColorMatrix); try { if (grayMatrix == null) { status = GDIPlus.GdipSetImageAttributesColorMatrix(nativeImageAttr, type, true, cm, IntPtr.Zero, mode); } else { IntPtr gm = ColorMatrix.Alloc(grayMatrix); try { status = GDIPlus.GdipSetImageAttributesColorMatrix(nativeImageAttr, type, true, cm, gm, mode); } finally { ColorMatrix.Free(gm); } } } finally { ColorMatrix.Free(cm); } GDIPlus.CheckStatus(status); }
public void SetColorMatrix(ColorMatrix colorMatrix, ColorMatrixFlag colorMatrixFlag) { SetColorMatrix(colorMatrix, colorMatrixFlag, ColorAdjustType.Default); }
public void SetColorMatrix(ColorMatrix colorMatrix, ColorMatrixFlag colorMatrixFlag, ColorAdjustType colorAdjustType) { throw new NotImplementedException(); }
internal static extern int GdipSetImageAttributesColorMatrix(HandleRef imageattr, ColorAdjustType type, bool enableFlag, ColorMatrix colorMatrix, ColorMatrix grayMatrix, ColorMatrixFlag flags);
public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix?grayMatrix, ColorMatrixFlag mode, ColorAdjustType type) { throw new PlatformNotSupportedException(); }
public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag mode, ColorAdjustType type) { throw null; }
/// <summary>Sets the color-adjustment matrix for the default category.</summary> /// <param name="newColorMatrix">The color-adjustment matrix. </param> /// <param name="flags"> /// An element of <see cref="T:Common.Drawing.Imaging.ColorMatrixFlag" /> that specifies the type of /// image and color that will be affected by the color-adjustment matrix. /// </param> public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag flags) { WrappedImageAttributes.SetColorMatrix(newColorMatrix, (System.Drawing.Imaging.ColorMatrixFlag)flags); }
internal static extern Status GdipSetImageAttributesColorMatrix (IntPtr imageattr, ColorAdjustType type, bool enableFlag, IntPtr colorMatrix, IntPtr grayMatrix, ColorMatrixFlag flags);
/// <summary>Sets the color-adjustment matrix for a specified category.</summary> /// <param name="newColorMatrix">The color-adjustment matrix. </param> /// <param name="mode"> /// An element of <see cref="T:Common.Drawing.Imaging.ColorMatrixFlag" /> that specifies the type of /// image and color that will be affected by the color-adjustment matrix. /// </param> /// <param name="type"> /// An element of <see cref="T:Common.Drawing.Imaging.ColorAdjustType" /> that specifies the category /// for which the color-adjustment matrix is set. /// </param> public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag mode, ColorAdjustType type) { WrappedImageAttributes.SetColorMatrix(newColorMatrix, (System.Drawing.Imaging.ColorMatrixFlag)mode, (System.Drawing.Imaging.ColorAdjustType)type); }
public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag flags) { this.SetColorMatrix(newColorMatrix, flags, ColorAdjustType.Default); }
/// <summary> /// Sets the color matrix with specifed flagsß. /// </summary> /// <param name="newColorMatrix">New color matrix.</param> /// <param name="flags">Flags.</param> public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag flags) { SetColorMatrix (newColorMatrix, ColorMatrixFlag.Default, ColorAdjustType.Default); }
public void SetColorMatrix (ColorMatrix colorMatrix, ColorMatrixFlag colorMatrixFlag) { SetColorMatrix (colorMatrix, colorMatrixFlag, ColorAdjustType.Default); }
public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, ColorMatrixFlag flags) { }
public void SetColorMatrix (ColorMatrix colorMatrix, ColorMatrixFlag colorMatrixFlag, ColorAdjustType colorAdjustType) { IntPtr cm = ColorMatrix.Alloc (colorMatrix); try { Status status = GDIPlus.GdipSetImageAttributesColorMatrix (nativeImageAttr, colorAdjustType, true, cm, IntPtr.Zero, colorMatrixFlag); GDIPlus.CheckStatus (status); } finally { ColorMatrix.Free (cm); } }
/// <include file='doc\ImageAttributes.uex' path='docs/doc[@for="ImageAttributes.SetColorMatrices1"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, ColorMatrixFlag flags) { SetColorMatrices(newColorMatrix, grayMatrix, flags, ColorAdjustType.Default); }
public void SetColorMatrices (ColorMatrix newColorMatrix, ColorMatrix grayMatrix, ColorMatrixFlag mode, ColorAdjustType type) { Status status; IntPtr cm = ColorMatrix.Alloc (newColorMatrix); try { if (grayMatrix == null) { status = GDIPlus.GdipSetImageAttributesColorMatrix (nativeImageAttr, type, true, cm, IntPtr.Zero, mode); } else { IntPtr gm = ColorMatrix.Alloc (grayMatrix); try { status = GDIPlus.GdipSetImageAttributesColorMatrix (nativeImageAttr, type, true, cm, gm, mode); } finally { ColorMatrix.Free (gm); } } } finally { ColorMatrix.Free (cm); } GDIPlus.CheckStatus (status); }
private static Color ProcessColorMatrices (Color color, ColorMatrix colorMatrix, ColorMatrix grayMatrix, ColorMatrixFlag flags, ColorAdjustType type) { using (Bitmap bmp = new Bitmap (64, 64)) { using (Graphics gr = Graphics.FromImage (bmp)) { ImageAttributes imageAttr = new ImageAttributes (); bmp.SetPixel (0, 0, color); imageAttr.SetColorMatrices (colorMatrix, grayMatrix, flags, type); gr.DrawImage (bmp, new Rectangle (0, 0, 64, 64), 0, 0, 64, 64, GraphicsUnit.Pixel, imageAttr); return bmp.GetPixel (0, 0); } } }
/// <summary> /// Sets the color matrix with specifed flagsß. /// </summary> /// <param name="newColorMatrix">New color matrix.</param> /// <param name="flags">Flags.</param> public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag flags) { SetColorMatrix(newColorMatrix, ColorMatrixFlag.Default, ColorAdjustType.Default); }
private static Color ProcessColorMatrices(Color color, ColorMatrix colorMatrix, ColorMatrix grayMatrix, ColorMatrixFlag flags, ColorAdjustType type) { using (Bitmap bmp = new Bitmap(64, 64)) { using (Graphics gr = Graphics.FromImage(bmp)) { ImageAttributes imageAttr = new ImageAttributes(); bmp.SetPixel(0, 0, color); imageAttr.SetColorMatrices(colorMatrix, grayMatrix, flags, type); gr.DrawImage(bmp, new Rectangle(0, 0, 64, 64), 0, 0, 64, 64, GraphicsUnit.Pixel, imageAttr); return(bmp.GetPixel(0, 0)); } } }
public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, ColorMatrixFlag mode, ColorAdjustType type) { int status = Gdip.GdipSetImageAttributesColorMatrix( new HandleRef(this, nativeImageAttributes), type, true, newColorMatrix, grayMatrix, mode); if (status != Gdip.Ok) { throw Gdip.StatusException(status); } }
public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag flags) { throw null; }