public virtual void SetPrimitiveBlend( D2D1_PRIMITIVE_BLEND primitiveBlend ) { var fp = GetFunctionPointer(78); if (m_SetPrimitiveBlendFunc == null) { m_SetPrimitiveBlendFunc = (SetPrimitiveBlendFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(SetPrimitiveBlendFunc)); } m_SetPrimitiveBlendFunc(m_ptr, primitiveBlend); }
public static void WithPrimitiveBlend(this ID2D1DeviceContext context, D2D1_PRIMITIVE_BLEND mode, Action action) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (action == null) { throw new ArgumentNullException(nameof(action)); } var old = context.GetPrimitiveBlend(); try { context.SetPrimitiveBlend(mode); action(); } finally { context.SetPrimitiveBlend(old); } }
public int SetPrimitiveBlend(D2D1_PRIMITIVE_BLEND primitiveBlend) { return(((delegate * unmanaged <ID2D1CommandSink1 *, D2D1_PRIMITIVE_BLEND, int>)(lpVtbl[10]))((ID2D1CommandSink1 *)Unsafe.AsPointer(ref this), primitiveBlend)); }
public HRESULT SetPrimitiveBlend2(D2D1_PRIMITIVE_BLEND primitiveBlend) { return(((delegate * unmanaged <ID2D1CommandSink4 *, D2D1_PRIMITIVE_BLEND, int>)(lpVtbl[33]))((ID2D1CommandSink4 *)Unsafe.AsPointer(ref this), primitiveBlend)); }
public static D2D1_DRAWING_STATE_DESCRIPTION1 DrawingStateDescription1(D2D1_ANTIALIAS_MODE antialiasMode = D2D1_ANTIALIAS_MODE_PER_PRIMITIVE, D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode = D2D1_TEXT_ANTIALIAS_MODE_DEFAULT, [NativeTypeName("D2D1_TAG")] ulong tag1 = 0, [NativeTypeName("D2D1_TAG")] ulong tag2 = 0, D2D1_PRIMITIVE_BLEND primitiveBlend = D2D1_PRIMITIVE_BLEND_SOURCE_OVER, D2D1_UNIT_MODE unitMode = D2D1_UNIT_MODE_DIPS) { return(DrawingStateDescription1(antialiasMode, textAntialiasMode, tag1, tag2, IdentityMatrix, primitiveBlend, unitMode)); }
public int SetPrimitiveBlend1(D2D1_PRIMITIVE_BLEND primitiveBlend) { return(((delegate * stdcall <ID2D1CommandSink4 *, D2D1_PRIMITIVE_BLEND, int>)(lpVtbl[28]))((ID2D1CommandSink4 *)Unsafe.AsPointer(ref this), primitiveBlend)); }
public static void WithPrimitiveBlend(this IComObject <ID2D1DeviceContext> context, D2D1_PRIMITIVE_BLEND mode, Action action) => WithPrimitiveBlend(context?.Object, mode, action);