Method: Processing::Image#width

Defined in:
lib/processing/image.rb

#widthNumeric Also known as: w

Gets width of image.



26
27
28
# File 'lib/processing/image.rb', line 26

def width()
  @image&.width || (@error ? -1 : 0)
end