GrapeCity SPREAD for Windows Forms 12.0J
GetImage(Assembly,String) メソッド


指定した画像リソースを含むアセンブリ。このアセンブリがnullの場合は、指定した画像リソースがファイルであることを意味します。
指定した画像リソースのパス。
指定したリソースから画像を取得します。
構文
'Declaration
 
Public Overloads Shared Function GetImage( _
   ByVal assembly As Assembly, _
   ByVal resourcePath As String _
) As Image
'使用法
 
Dim assembly As Assembly
Dim resourcePath As String
Dim value As Image
 
value = DPIUtils.GetImage(assembly, resourcePath)
public static Image GetImage( 
   Assembly assembly,
   string resourcePath
)

パラメータ

assembly
指定した画像リソースを含むアセンブリ。このアセンブリがnullの場合は、指定した画像リソースがファイルであることを意味します。
resourcePath
指定した画像リソースのパス。

戻り値の型

指定したリソースから取得された画像。指定したリソースが存在しないか開けない場合、または指定したリソースが画像リソースでない場合は、nullを返します。
参照

DPIUtils クラス
DPIUtils メンバ
オーバーロード一覧

 

 


Copyright © 2004 GrapeCity inc.