class Google::Apis::SlidesV1::ImageProperties

The properties of the Image.

Attributes

brightness[RW]

The brightness effect of the image. The value should be in the interval [-1.0, 1.0], where 0 means no effect. This property is read-only. Corresponds to the JSON property `brightness` @return [Float]

contrast[RW]

The contrast effect of the image. The value should be in the interval [-1.0, 1. 0], where 0 means no effect. This property is read-only. Corresponds to the JSON property `contrast` @return [Float]

crop_properties[RW]

The crop properties of an object enclosed in a container. For example, an Image. The crop properties is represented by the offsets of four edges which define a crop rectangle. The offsets are measured in percentage from the corresponding edges of the object's original bounding rectangle towards inside, relative to the object's original dimensions. - If the offset is in the interval (0, 1), the corresponding edge of crop rectangle is positioned inside of the object's original bounding rectangle. - If the offset is negative or greater than 1, the corresponding edge of crop rectangle is positioned outside of the object's original bounding rectangle. - If the left edge of the crop rectangle is on the right side of its right edge, the object will be flipped horizontally. - If the top edge of the crop rectangle is below its bottom edge, the object will be flipped vertically. - If all offsets and rotation angle is 0, the object is not cropped. After cropping, the content in the crop rectangle will be stretched to fit its container. Corresponds to the JSON property `cropProperties` @return [Google::Apis::SlidesV1::CropProperties]

outline[RW]

The outline of a PageElement. If these fields are unset, they may be inherited from a parent placeholder if it exists. If there is no parent, the fields will default to the value used for new page elements created in the Slides editor, which may depend on the page element kind. Corresponds to the JSON property `outline` @return [Google::Apis::SlidesV1::Outline]

recolor[RW]

A recolor effect applied on an image. Corresponds to the JSON property `recolor` @return [Google::Apis::SlidesV1::Recolor]

shadow[RW]

The shadow properties of a page element. If these fields are unset, they may be inherited from a parent placeholder if it exists. If there is no parent, the fields will default to the value used for new page elements created in the Slides editor, which may depend on the page element kind. Corresponds to the JSON property `shadow` @return [Google::Apis::SlidesV1::Shadow]

transparency[RW]

The transparency effect of the image. The value should be in the interval [0.0, 1.0], where 0 means no effect and 1 means completely transparent. This property is read-only. Corresponds to the JSON property `transparency` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/slides_v1/classes.rb, line 1301
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/slides_v1/classes.rb, line 1306
def update!(**args)
  @brightness = args[:brightness] if args.key?(:brightness)
  @contrast = args[:contrast] if args.key?(:contrast)
  @crop_properties = args[:crop_properties] if args.key?(:crop_properties)
  @link = args[:link] if args.key?(:link)
  @outline = args[:outline] if args.key?(:outline)
  @recolor = args[:recolor] if args.key?(:recolor)
  @shadow = args[:shadow] if args.key?(:shadow)
  @transparency = args[:transparency] if args.key?(:transparency)
end