Class: Fox::FXMemoryBuffer

Inherits:
Object
  • Object
show all
Defined in:
rdoc-sources/FXMemoryBuffer.rb

Overview

This class is deprecated. Use FXImage methods instead.

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ FXMemoryBuffer

Return a new FXMemoryBuffer instance, initialized with the provided array of FXColor values.

Parameters:

data

the initial array of FXColor values.



13
# File 'rdoc-sources/FXMemoryBuffer.rb', line 13

def initialize(data); end

Instance Method Details

#[](index) ⇒ Object

Return the specified element (an FXColor value)



23
# File 'rdoc-sources/FXMemoryBuffer.rb', line 23

def [](index); end

#[]=(index, clr) ⇒ Object

Set the specified element to clr.



26
# File 'rdoc-sources/FXMemoryBuffer.rb', line 26

def []=(index, clr); end

#dataObject Also known as: to_a

Return a copy of the pixel buffer, as an array of FXColor values [Array]



16
# File 'rdoc-sources/FXMemoryBuffer.rb', line 16

def data; end

#sizeObject

Return the size of the pixel buffer



20
# File 'rdoc-sources/FXMemoryBuffer.rb', line 20

def size; end