Image.GetThumbnailImage メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Image.GetThumbnailImage メソッドの意味・解説 

Image.GetThumbnailImage メソッド

この Image のサムネイルを返します。

名前空間: System.Drawing
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Public Function GetThumbnailImage ( _
    thumbWidth As Integer, _
    thumbHeight As Integer, _
    callback As GetThumbnailImageAbort, _
    callbackData As IntPtr _
) As Image
Dim instance As Image
Dim thumbWidth As Integer
Dim thumbHeight As Integer
Dim callback As GetThumbnailImageAbort
Dim callbackData As IntPtr
Dim returnValue As Image

returnValue = instance.GetThumbnailImage(thumbWidth, thumbHeight, callback, callbackData)
public Image GetThumbnailImage (
    int thumbWidth,
    int thumbHeight,
    GetThumbnailImageAbort callback,
    IntPtr callbackData
)
public:
Image^ GetThumbnailImage (
    int thumbWidth, 
    int thumbHeight, 
    GetThumbnailImageAbort^ callback, 
    IntPtr callbackData
)
public Image GetThumbnailImage (
    int thumbWidth, 
    int thumbHeight, 
    GetThumbnailImageAbort callback, 
    IntPtr callbackData
)
public function GetThumbnailImage (
    thumbWidth : int, 
    thumbHeight : int, 
    callback : GetThumbnailImageAbort, 
    callbackData : IntPtr
) : Image

パラメータ

thumbWidth

要求されたサムネイル イメージの幅 (ピクセル単位)。

thumbHeight

要求されたサムネイル イメージの高さ (ピクセル単位)。

callback

Image.GetThumbnailImageAbort デリゲート。GDI+ Version 1.0 ではデリゲートは使用されません。その場合でもデリゲートを作成し、作成したデリゲートへの参照をこのパラメータに渡す必要があります。

callbackData

Zero にする必要があります。

戻り値
サムネイルを表す Image。

解説解説
使用例使用例

サムネイル イメージを作成し表示するコード例を次に示します。このデリゲートが呼び出されることはありません。

public bool ThumbnailCallback()
 {
 return false;
 }
 public void Example_GetThumb(PaintEventArgs
 e)
 {
 Image.GetThumbnailImageAbort myCallback =
 new Image.GetThumbnailImageAbort(ThumbnailCallback);
 Bitmap myBitmap = new Bitmap("Climber.jpg");
 Image myThumbnail = myBitmap.GetThumbnailImage(
 40, 40, myCallback, IntPtr.Zero);
 e.Graphics.DrawImage(myThumbnail, 150, 75);
 }
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

Image.GetThumbnailImage メソッドのお隣キーワード

   

英語⇒日本語
日本語⇒英語
   



Image.GetThumbnailImage メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS