BitmapEditor.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / Drawing / System / Drawing / Design / BitmapEditor.cs / 1 / BitmapEditor.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Drawing.Design { 
    using System.Runtime.Serialization.Formatters; 

    using System.Diagnostics; 
    using System;
    using System.IO;
    using System.Collections;
    using System.ComponentModel; 
    using System.Windows.Forms;
    using System.Drawing; 
 
    /// 
    ///  
    ///    Provides an editor that can perform default file searching for bitmap (.bmp)
    ///       files.
    /// 
    [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] 
    [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")]
    [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] 
    public class BitmapEditor : ImageEditor { 

        ///  
        /// 
        ///    [To be supplied.]
        /// 
        protected override string GetFileDialogDescription() { 
            return SR.GetString(SR.bitmapFileDescription);
        } 
 
        /// 
        ///  
        ///    [To be supplied.]
        /// 
        protected override string[] GetExtensions() {
            return new string[] { "bmp","gif","jpg","jpeg", "png", "ico" }; 
        }
 
        ///  
        /// 
        ///    [To be supplied.] 
        /// 
        protected override Image LoadFromStream(Stream stream) {
            return new Bitmap(stream);
        } 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

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