Пример #1
0
        public RectF[] GetEffectRequiredInputRectangles(ID2D1Effect renderEffect, RectF renderImageRectangle, EffectInputDescription[] inputDescriptions)
        {
            var result = new RectF[inputDescriptions.Length];

            GetEffectRequiredInputRectangles(renderEffect, renderImageRectangle, inputDescriptions, result, inputDescriptions.Length);
            return(result);
        }
Пример #2
0
 /// <summary>
 /// Sets the input by using the output of a given effect.
 /// </summary>
 /// <param name="index">Index of the input</param>
 /// <param name="effect">Effect output to use as input</param>
 /// <param name="invalidate">To invalidate</param>
 public void SetInputEffect(int index, ID2D1Effect effect, bool invalidate = true)
 {
     using (ID2D1Image output = effect.Output)
     {
         SetInput(index, output, invalidate);
     }
 }
Пример #3
0
 public void DrawImage(
     ID2D1Effect effect,
     InterpolationMode interpolationMode = InterpolationMode.Linear,
     CompositeMode compositeMode         = CompositeMode.SourceOver)
 {
     using (var output = effect.Output)
     {
         DrawImage(output, null, null, interpolationMode, compositeMode);
     }
 }
Пример #4
0
        public RectF[] GetEffectInvalidRectangles(ID2D1Effect effect)
        {
            var invalidRects = new RectF[GetEffectInvalidRectangleCount(effect)];

            if (invalidRects.Length == 0)
            {
                return(invalidRects);
            }

            GetEffectInvalidRectangles(effect, invalidRects, invalidRects.Length);
            return(invalidRects);
        }
Пример #5
0
 public void GetEffectInvalidRectangles(ID2D1Effect effect, RectF[] invalidRects)
 {
     GetEffectInvalidRectangles(effect, invalidRects, invalidRects.Length);
 }
Пример #6
0
 public void GetEffectRequiredInputRectangles(ID2D1Effect renderEffect, RectF renderImageRectangle, EffectInputDescription[] inputDescriptions, RectF[] requiredInputRects)
 {
     GetEffectRequiredInputRectangles(renderEffect, renderImageRectangle, inputDescriptions, requiredInputRects, inputDescriptions.Length);
 }