Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets an image from a resource
Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public Shared Function GetImage ( _
    type As Type, _
    resourceName As String _
) As Image
public static Image GetImage(
    Type type,
    string resourceName
)
public:
static Image^ GetImage(
    Type^ type, 
    String^ resourceName
)
static member GetImage : 
        type:Type * 
        resourceName:string -> Image
public static function GetImage(
    type : Type, 
    resourceName : String
) : Image
Parameters
- type 
 Type: System.Type- A type in the assembly to read resource from 
- resourceName 
 Type: System.String- name of the metafile resource 
Return Value
Type: System.Drawing.Image
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.