Class: Wx::Icon

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/classes/icon.rb

Overview

Specific type of platform-dependent image used for frames on Windows and Linux. Normally Bitmap is used

Constant Summary collapse

BITMAP_TYPE_GUESS =
Wx::Bitmap::BITMAP_TYPE_GUESS

Class Method Summary collapse

Class Method Details

.from_bitmap(bmp) ⇒ Object

Analogous to Image.from_bitmap



9
10
11
12
13
# File 'lib/wx/classes/icon.rb', line 9

def self.from_bitmap(bmp)
  ico = new
  ico.copy_from_bitmap(bmp)
  ico
end