Class: Layout::Image
Overview
A raster image entity.
Instance Method Summary # collapse
-
#clip_mask ⇒ Layout::Entity
The #clip_mask method returns the clip mask of the Image, or
nil
if it does not have a clip mask. -
#clip_mask=(clip_mask) ⇒ Object
The #clip_mask= method sets the clip mask of the Image.
-
#initialize(path, bounds) ⇒ Layout::Image
constructor
The #initialize method creates a new Image from a given image file.
Methods inherited from Entity
#==, #bounds, #document, #drawing_bounds, #group, #layer_instance, #locked=, #locked?, #move_to_group, #move_to_layer, #on_shared_layer?, #page, #style, #style=, #transform!, #transformation, #untransformed_bounds, #untransformed_bounds=
Constructor Details
↑ #initialize(path, bounds) ⇒ Layout::Image
The #initialize method creates a new Layout::Image from a given image file.
Instance Method Details
↑ #clip_mask ⇒ Layout::Entity
The #clip_mask method returns the clip mask of the Layout::Image, or nil
if it does not have a clip mask.
↑ #clip_mask=(clip_mask) ⇒ Object
clip_mask
may be nil
as of LayOut 2020.1.
The #clip_mask= method sets the clip mask of the Layout::Image. clip_mask can be a Rectangle, Ellipse, or Path, or nil
, and it must not currently exist in a Document, or Group.