BitmapEffectDrawingContent.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media / Effects / BitmapEffectDrawingContent.cs / 1 / BitmapEffectDrawingContent.cs

                            //---------------------------------------------------------------------------- 
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
// Description: BitmapEffectDrawingContent is used by DrawingGroup to 
//              hold the information for the scheduled realization updates
// 
// 
//---------------------------------------------------------------------------
 
using System;
using System.Windows.Threading;

using MS.Win32; 
using System.Windows.Media;
using System.Windows.Media.Imaging; 
using System.Windows.Media.Animation; 
using System.Windows.Media.Composition;
using System.Windows.Media.Effects; 
using System.Collections;
using System.Collections.Generic;
using MS.Internal;
using MS.Internal.Media; 
using System.Resources;
using MS.Utility; 
 
namespace System.Windows.Media.Effects
{ 
    /// 
    /// This class is used to realize the content of the
    /// drawing group if a bitmap effect is applied to it
    ///  
    internal class BitmapEffectDrawingContent : IRealizationContextClient
    { 
        DrawingGroup _group; 
        DUCE.Channel _channel;
 
        public BitmapEffectDrawingContent(DrawingGroup g, RealizationContext ctx)
        {
            _channel = ctx.Channel;
            _group = g; 
        }
 
        public void ExecuteRealizationsUpdate() 
        {
            _group.RenderBitmapEffect(_channel); 
        }
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//---------------------------------------------------------------------------- 
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
// Description: BitmapEffectDrawingContent is used by DrawingGroup to 
//              hold the information for the scheduled realization updates
// 
// 
//---------------------------------------------------------------------------
 
using System;
using System.Windows.Threading;

using MS.Win32; 
using System.Windows.Media;
using System.Windows.Media.Imaging; 
using System.Windows.Media.Animation; 
using System.Windows.Media.Composition;
using System.Windows.Media.Effects; 
using System.Collections;
using System.Collections.Generic;
using MS.Internal;
using MS.Internal.Media; 
using System.Resources;
using MS.Utility; 
 
namespace System.Windows.Media.Effects
{ 
    /// 
    /// This class is used to realize the content of the
    /// drawing group if a bitmap effect is applied to it
    ///  
    internal class BitmapEffectDrawingContent : IRealizationContextClient
    { 
        DrawingGroup _group; 
        DUCE.Channel _channel;
 
        public BitmapEffectDrawingContent(DrawingGroup g, RealizationContext ctx)
        {
            _channel = ctx.Channel;
            _group = g; 
        }
 
        public void ExecuteRealizationsUpdate() 
        {
            _group.RenderBitmapEffect(_channel); 
        }
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK