Icon クラスとは? わかりやすく解説

Icon クラス

Windowsアイコン (オブジェクトを表すために使用される小さなビットマップ イメージ) を表しますアイコン透明なビットマップ考えることもできますが、そのサイズシステムによって決定されます。

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

<SerializableAttribute> _
Public NotInheritable Class
 Icon
    Inherits MarshalByRefObject
    Implements ISerializable, ICloneable, IDisposable
[SerializableAttribute] 
public sealed class Icon : MarshalByRefObject,
 ISerializable, ICloneable, IDisposable
[SerializableAttribute] 
public ref class Icon sealed : public
 MarshalByRefObject, ISerializable, ICloneable, IDisposable
/** @attribute SerializableAttribute() */ 
public final class Icon extends MarshalByRefObject
 implements ISerializable, ICloneable, 
    IDisposable
SerializableAttribute 
public final class Icon extends
 MarshalByRefObject implements ISerializable, ICloneable, 
    IDisposable
使用例使用例

ToBitmap メソッド使用する方法次のコード例示します。この例は、Windows フォームでの使用意図してデザインされています。フォーム作成し次のコード貼り付けます。フォームPaint イベント ハンドラIconToBitmap メソッド呼び出しe を PaintEventArgs として渡します

Private Sub IconToBitmap(ByVal
 e As PaintEventArgs)

    ' Construct an Icon.
    Dim icon1 As New Icon(SystemIcons.Exclamation,
 40, 40)

    ' Call ToBitmap to convert it.
    Dim bmp As Bitmap = icon1.ToBitmap()

    ' Draw the bitmap.
    e.Graphics.DrawImage(bmp, New Point(30, 30))
End Sub
private void IconToBitmap(PaintEventArgs e)
{
    // Construct an Icon.
    Icon icon1 = new Icon(SystemIcons.Exclamation, 40, 40);

    // Call ToBitmap to convert it.
    Bitmap bmp = icon1.ToBitmap();

    // Draw the bitmap.
    e.Graphics.DrawImage(bmp, new Point(30, 30));
}
private:
   void IconToBitmap( PaintEventArgs^ e )
   {
      // Construct an Icon.
      System::Drawing::Icon^ icon1 = gcnew System::Drawing::Icon( SystemIcons::Exclamation,40,40
 );

      // Call ToBitmap to convert it.
      Bitmap^ bmp = icon1->ToBitmap();

      // Draw the bitmap.
      e->Graphics->DrawImage( bmp, Point(30,30) );
   }
private void IconToBitmap(PaintEventArgs e)
{
    // Construct an Icon.
    Icon icon1 = new Icon(SystemIcons.get_Exclamation(), 40, 40);

    // Call ToBitmap to convert it.
    Bitmap bmp = icon1.ToBitmap();

    // Draw the bitmap.
    e.get_Graphics().DrawImage(bmp, new Point(30, 30));
} //IconToBitmap
継承階層継承階層
System.Object
   System.MarshalByRefObject
    System.Drawing.Icon
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「Icon クラス」の関連用語

Icon クラスのお隣キーワード
検索ランキング

   

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



Icon クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS