class

RQRCode::Export::PNG::Image

Inherits Reference < Object

Мини-замена ChunkyPNG::Image: RGBA-канва + PNG-энкодер (grayscale 8-bit).

Constructors

new(width : Int32, height : Int32, background : UInt32 = 4294967295_u32)
Source

Class methods

steps(width, new_width)
Source
steps_residues(width, new_width)
Source

Instance methods

[](x, y)
Source
[]=(x, y, color)
Source
height
Source
resize(new_width : Int32, new_height : Int32) : Image

ChunkyPNG#resize — nearest neighbor (resample_nearest_neighbor): Bresenham-подход с накоплением дробной ошибки (steps/steps_residues)

Source
save(path : String, _constraints = {} of String => String) : Image
Source
to_blob

PNG-байты (grayscale 8-bit, color type 0)

Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
width
Source