Sha256: 5f99fa686ef66504fdc820666a45a0586d016c783029de5160e63493a8938b9d
Contents?: true
Size: 617 Bytes
Versions: 2
Compression:
Stored size: 617 Bytes
Contents
require File.expand_path('../spec_helper.rb', File.dirname(__FILE__)) describe ChunkyPNG do # it "should create reference images for all color modes" do # image = ChunkyPNG::Image.new(10, 10, ChunkyPNG::Pixel.rgb(100, 100, 100)) # [:indexed, :grayscale, :grayscale_alpha, :truecolor, :truecolor_alpha].each do |color_mode| # # color_mode_id = ChunkyPNG::Chunk::Header.const_get("COLOR_#{color_mode.to_s.upcase}") # filename = resource_file("gray_10x10_#{color_mode}.png") # File.open(filename, 'w') { |f| image.write(f, :color_mode => color_mode_id) } # end # end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chunky_png-0.0.3 | spec/integration/image_spec.rb |
chunky_png-0.0.2 | spec/integration/image_spec.rb |