class Fzeet::PARGB32

Attributes

path[R]

Public Class Methods

new(path, width = 0, height = 0) click to toggle source
# File lib/fzeet/windows/core/Common.rb, line 244
def initialize(path, width = 0, height = 0)
        @handle = Windows.DetonateLastError(FFI::Pointer::NULL, :LoadImage,
                nil,
                @path = path,
                Windows::IMAGE_BITMAP,
                width,
                height,
                Windows::LR_LOADFROMFILE | Windows::LR_CREATEDIBSECTION
        )

        attach
end

Public Instance Methods

dispose() click to toggle source
# File lib/fzeet/windows/core/Common.rb, line 259
def dispose; Windows.DeleteObject(@handle); detach end