Class: ZXing::FFI::Common::BitMatrix

Inherits:
Object
  • Object
show all
Includes:
Common::BitMatrix
Defined in:
lib/zxing/ffi/common/bit_matrix.rb

Instance Attribute Summary

Attributes included from Common::BitMatrix

#native

Instance Method Summary collapse

Constructor Details

#initialize(ptr) ⇒ BitMatrix

Returns a new instance of BitMatrix.



6
7
8
# File 'lib/zxing/ffi/common/bit_matrix.rb', line 6

def initialize ptr
  super ZXing::FFI::Library::BitMatrixPointer.new ptr
end

Instance Method Details

#get(x, y) ⇒ Object



9
10
11
# File 'lib/zxing/ffi/common/bit_matrix.rb', line 9

def get x, y
  ZXing::FFI::Library.BitMatrix_get native, x, y
end