//------------------------------------------------------ // // Public Properties // //------------------------------------------------------ private static void AreaToApplyEffectPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { BitmapEffectInput target = ((BitmapEffectInput)d); target.PropertyChanged(AreaToApplyEffectProperty); }
public BitmapSource GetOutput(BitmapEffectInput input) { if (input == null) { throw new ArgumentNullException("input"); } // if we don't have the input set, we should not be calling the output property if (input.Input == null) { throw new ArgumentException(SR.Get(SRID.Effect_No_InputSource), "input"); } if (input.Input == BitmapEffectInput.ContextInputSource) { throw new InvalidOperationException(SR.Get(SRID.Effect_No_ContextInputSource, null)); } return(input.Input.Clone()); }
public BitmapEffectInputData(BitmapEffect bitmapEffect, BitmapEffectInput bitmapEffectInput) { BitmapEffect = bitmapEffect; BitmapEffectInput = bitmapEffectInput; }
public BitmapEffectInputData(BitmapEffect bitmapEffect, BitmapEffectInput bitmapEffectInput) { BitmapEffect = bitmapEffect; BitmapEffectInput = bitmapEffectInput; }
public override void PushEffect( BitmapEffect effect, BitmapEffectInput effectInput) { if (!IsPushNoOp()) { // This API has been deprecated, so any BitmapEffect is ignored. PushPointStack(_point); } }
public override void PushEffect( BitmapEffect effect, BitmapEffectInput effectInput) { _drawingContext.PushEffect( effect, effectInput ); }
public override void PushEffect( BitmapEffect effect, BitmapEffectInput effectInput) { VerifyApiNonstructuralChange(); #if DEBUG MediaTrace.DrawingContextOp.Trace("PushEffect(const)"); #endif unsafe { EnsureRenderData(); MILCMD_PUSH_EFFECT record = new MILCMD_PUSH_EFFECT ( _renderData.AddDependentResource(effect), _renderData.AddDependentResource(effectInput) ); // Assert that the calculated packet size is the same as the size returned by sizeof(). Debug.Assert(sizeof(MILCMD_PUSH_EFFECT) == 8); _renderData.WriteDataRecord(MILCMD.MilPushEffect, (byte*)&record, 8 /* sizeof(MILCMD_PUSH_EFFECT) */); } _stackDepth++; if (_renderData.BitmapEffectStackDepth == 0) { _renderData.BeginTopLevelBitmapEffect(_stackDepth); } }
private void pushBitmapEffectInput(BitmapEffectInput newValue) { #pragma warning disable 0618 base.VisualBitmapEffectInput = newValue; #pragma warning restore 0618 }
public override void PushEffect( BitmapEffect effect, BitmapEffectInput effectInput) { Debug.Assert(false); }
public BitmapSource GetOutput(BitmapEffectInput input) { throw new NotImplementedException(); }
public System.Windows.Media.Imaging.BitmapSource GetOutput(BitmapEffectInput input) { return default(System.Windows.Media.Imaging.BitmapSource); }
public override void PushEffect( BitmapEffect effect, BitmapEffectInput effectInput) { // Ensure the type stack PushTypeStack(PushType.BitmapEffect); // This API has been deprecated, so any BitmapEffect is ignored. }
public System.Windows.Media.Imaging.BitmapSource GetOutput(BitmapEffectInput input) { return(default(System.Windows.Media.Imaging.BitmapSource)); }
public BitmapSource GetOutput(BitmapEffectInput input) { if (input == null) { throw new ArgumentNullException("input"); } // if we don't have the input set, we should not be calling the output property if (input.Input == null) { throw new ArgumentException(SR.Get(SRID.Effect_No_InputSource), "input"); } if (input.Input == BitmapEffectInput.ContextInputSource) { throw new InvalidOperationException(SR.Get(SRID.Effect_No_ContextInputSource, null)); } return input.Input.Clone(); }
public abstract void PushEffect( BitmapEffect effect, BitmapEffectInput effectInput);
public BitmapSource GetOutput (BitmapEffectInput input) { throw new NotImplementedException (); }
public override void PushEffect( BitmapEffect effect, BitmapEffectInput effectInput) { #if DEBUG MediaTrace.DrawingContextOp.Trace("PushEffect(const)"); #endif // // Verify that parameters & state are valid // VerifyApiNonstructuralChange(); // // Instantiate a new drawing group and set it as the _currentDrawingGroup // PushNewDrawingGroup(); // // Set the transform on the new DrawingGroup // // NOTE: [....] Disabling this API for now _currentDrawingGroup.BitmapEffect = effect; _currentDrawingGroup.BitmapEffectInput = (effectInput != null) ? effectInput : new BitmapEffectInput(); }