Share via


ImageHelper.GetImage Method (Type, String)

Gets an image from a resource

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.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: Type

    A type in the assembly to read resource from

  • resourceName
    Type: String

    name of the metafile resource

Return Value

Type: Image

.NET Framework Security

See Also

Reference

ImageHelper Class

GetImage Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace