Class | Pixels::TargaBase |
In: |
lib/pixels.rb
|
Parent: | Object |
Abstract class
alpha_depth | [R] | Bit-depth of the alpha channel (bits per pixel) |
bpp | [R] | Number of bits used to store each pixel |
color_depth | [R] | Color-depth of the image (bits per pixel) |
height | [R] | Height of the image (pixels) |
origin | [R] | Indicates which pixel appears first in the TGA file. One of :UPPER_LEFT or :LOWER_LEFT. |
width | [R] | Width of the image (pixels) |
Iterate through each row of the image, representing each pixel as an RGB value.
For each y-coordinate in the image, this method calls the given block with two arguments: get_row_rgb(y) and y.
If no block is provided, an Enumerator is returned.
Iterate through each row of the image, representing each pixel as an RGBA value.
For each y-coordinate in the image, this method calls the given block with two arguments: get_row_rgba(y) and y.
If no block is provided, an Enumerator is returned.
Return the row of pixels having the specified y-coordinate. The row is represented as an array of [r, g, b] values for each pixel in the row.
Each r, g, b value is an integer between 0 and 255.
Return the row of pixels having the specified y-coordinate. The row is represented as an array of [r, g, b, a] values for each pixel in the row.
Each r, g, b, a value is an integer between 0 and 255.
Replace the row of pixels having the specified y-coordinate. The row is represented as an array of [r, g, b] values for each pixel in the row.
Each r, g, b value is an integer between 0 and 255.
Replace the row of pixels having the specified y-coordinate. The row is represented as an array of [r, g, b, a] values for each pixel in the row.
Each r, g, b, a value is an integer between 0 and 255.
Return a string containing the raw bytes from the row at the specified y-coordinate.
You probably want to use get_row_rgb or get_row_rgba instead.
Return a Hash containing the file format specification, which can be used as the "spec" parameter in Pixels::create_tga.
Write a string containing the raw bytes for a row Return a string containing the raw bytes from the row at the specified y-coordinate.
You probably want to use put_row_rgb or put_row_rgba instead.