Class: Google::Apis::SlidesV1::ImageProperties
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::ImageProperties
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/slides_v1/classes.rb,
generated/google/apis/slides_v1/representations.rb,
generated/google/apis/slides_v1/representations.rb
Overview
The properties of the Image.
Instance Attribute Summary collapse
-
#brightness ⇒ Float
The brightness effect of the image.
-
#contrast ⇒ Float
The contrast effect of the image.
-
#crop_properties ⇒ Google::Apis::SlidesV1::CropProperties
The crop properties of an object enclosed in a container.
-
#link ⇒ Google::Apis::SlidesV1::Link
A hypertext link.
-
#outline ⇒ Google::Apis::SlidesV1::Outline
The outline of a PageElement.
-
#recolor ⇒ Google::Apis::SlidesV1::Recolor
A recolor effect applied on an image.
-
#shadow ⇒ Google::Apis::SlidesV1::Shadow
The shadow properties of a page element.
-
#transparency ⇒ Float
The transparency effect of the image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImageProperties
constructor
A new instance of ImageProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ImageProperties
Returns a new instance of ImageProperties
1994 1995 1996 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1994 def initialize(**args) update!(**args) end |
Instance Attribute Details
#brightness ⇒ Float
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
1976 1977 1978 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1976 def brightness @brightness end |
#contrast ⇒ Float
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
1930 1931 1932 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1930 def contrast @contrast end |
#crop_properties ⇒ Google::Apis::SlidesV1::CropProperties
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
1961 1962 1963 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1961 def crop_properties @crop_properties end |
#link ⇒ Google::Apis::SlidesV1::Link
A hypertext link.
Corresponds to the JSON property link
1935 1936 1937 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1935 def link @link end |
#outline ⇒ Google::Apis::SlidesV1::Outline
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
1970 1971 1972 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1970 def outline @outline end |
#recolor ⇒ Google::Apis::SlidesV1::Recolor
A recolor effect applied on an image.
Corresponds to the JSON property recolor
1940 1941 1942 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1940 def recolor @recolor end |
#shadow ⇒ Google::Apis::SlidesV1::Shadow
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
1992 1993 1994 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1992 def shadow @shadow end |
#transparency ⇒ Float
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
1983 1984 1985 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1983 def transparency @transparency end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1999 def update!(**args) @contrast = args[:contrast] if args.key?(:contrast) @link = args[:link] if args.key?(:link) @recolor = args[:recolor] if args.key?(:recolor) @crop_properties = args[:crop_properties] if args.key?(:crop_properties) @outline = args[:outline] if args.key?(:outline) @brightness = args[:brightness] if args.key?(:brightness) @transparency = args[:transparency] if args.key?(:transparency) @shadow = args[:shadow] if args.key?(:shadow) end |