lib/prawn/images/jpg.rb in prawn-0.14.0 vs lib/prawn/images/jpg.rb in prawn-0.15.0
- old
+ new
@@ -8,13 +8,16 @@
require 'stringio'
module Prawn
module Images
+
# A convenience class that wraps the logic for extracting the parts
# of a JPG image that we need to embed them in a PDF
#
class JPG < Image
+ # @group Extension API
+
attr_reader :width, :height, :bits, :channels
attr_accessor :scaled_width, :scaled_height
JPEG_SOF_BLOCKS = [0xC0, 0xC1, 0xC2, 0xC3, 0xC5, 0xC6, 0xC7, 0xC9, 0xCA, 0xCB, 0xCD, 0xCE, 0xCF]