Class RGhost::Gif
In: gif.rb
Parent: RGhost::Image

Loads GIF image from file

Examples

 doc=Document.new
 doc.set Gif.new "../public/images/button.gif", :x => 10, :y => 3

Using Image.for facade

 doc.set Image.for "../public/images/button.gif", :x => 10, :y => 3

Using PsFacade or Document

 doc.image "images/button.gif", :x => 10, :y => 3

Using zoom of the 200 percent

 doc.image "images/button.gif", :zoom => 200

Options

  • :x and :y - Coordinates to position.
  • :rotate - Angle to image rotation if there is one.
  • :zoom - Resize proportionally the image

Methods

ps  

Public Instance methods

[Validate]