SAKAI Masahiro - Gimp::PixelRgn Diff

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

= Gimp::PixelRgn

== Class methods:

--- Gimp::PixelRgn.new(drawable, x, y, width, height, dirty, shadow)
     drawable引数はGimp::Drawable::Structです。

--- Gimp::PixelRgn.process_each(rgn1, ...){... }
     -

== Methods:

--- Gimp::PixelRgn#data
    retrieve region data

--- Gimp::PixelRgn#drawable
    ((<Gimp::Drawable::Struct>))

--- Gimp::PixelRgn#bpp
    bytes per pixel

--- Gimp::PixelRgn#rowstride
    bytes per pixel row

--- Gimp::PixelRgn#x
    origin

--- Gimp::PixelRgn#y
    origin

--- Gimp::PixelRgn#w
--- Gimp::PixelRgn#width
    width of region

--- Gimp::PixelRgn#h
--- Gimp::PixelRgn#height
    height of region

--- Gimp::PixelRgn#dirty?
    will this region be dirtied?

--- Gimp::PixelRgn#shadow?
    will this region use the shadow or normal tiles

--- Gimp::PixelRgn#resize(x, y, width, height)

--- Gimp::PixelRgn#get_pixel(buf, x, y)
    bufがnilならば、新しく確保したStringに結果を格納して返します。

    bufがString, ((<NArray>)), ((<NumArray>))のインスタンスならば
    bufに破壊的に書き込み、bufを返します。

--- Gimp::PixelRgn#get_row(buf, x, y, width)
    同様に行を返します

--- Gimp::PixelRgn#get_col(buf, x, y, height)
    同様に列を返します

--- Gimp::PixelRgn#get_rect(buf, x, y, width, height)
    同様に矩形領域を返します。

--- Gimp::PixelRgn#set_pixel(buf, x, y)
    -

--- Gimp::PixelRgn#set_row(buf, x, y, width)
    -

--- Gimp::PixelRgn#set_col(buf, x, y, height)
    -

--- Gimp::PixelRgn#set_rect(buf, x, y, width, height)
    -

--- Gimp::PixelRgn#[](x, y)

    get_pixel(nil, x, y)

--- Gimp::PixelRgn#[](x1...x2, y)

    get_col(nil, x1, y, x2 - x1)

--- Gimp::PixelRgn#[](x, y1...y2)

    get_row(nil, x, y1, y2 - y1)

--- Gimp::PixelRgn#[](x1...x2, y1...y2)

    get_rect(nil, x1, y1, x2 - x1, y2 - y1)

--- Gimp::PixelRgn#[]=(x, y, value)

    set_pixel(value, x, y)

--- Gimp::PixelRgn#[](x1...x2, y, value)

    set_col(value, x1, y, x2 - x1)

--- Gimp::PixelRgn#[](x, y1...y2, value)

    set_row(value, x, y1, y2 - y1)

--- Gimp::PixelRgn#[](x1...x2, y1...y2, value)

    set_rect(value, x1, y1, x2 - x1, y2 - y1)