Stay organized with collections Save and categorize content based on your preferences.
AffineTransformBuilderA builder for AffineTransform
objects. Defaults to the identity transform.
Call AffineTransformBuilder#build()
to get the AffineTransform
object.
const transform = SlidesApp.newAffineTransformBuilder().setScaleX(2.0).setShearY(1.1).build(); // The resulting transform matrix is // [ 2.0 0.0 0.0 ] // [ 1.1 1.0 0.0 ] // [ 0 0 1 ] }Detailed documentation
setScaleX(scaleX)
Sets the X coordinate scaling element and returns the builder.
Parameters Name Type DescriptionscaleX
Number
Return
setScaleY(scaleY)
Sets the Y coordinate scaling element and returns the builder.
Parameters Name Type DescriptionscaleY
Number
Return
setShearX(shearX)
Sets the X coordinate shearing element and returns the builder.
Parameters Name Type DescriptionshearX
Number
Return
setShearY(shearY)
Sets the Y coordinate shearing element and returns the builder.
Parameters Name Type DescriptionshearY
Number
Return
Sets the X coordinate translation element in points, and returns the builder.
Parameters Name Type DescriptiontranslateX
Number
Return
setTranslateY(translateY)
Sets the Y coordinate translation element in points, and returns the builder.
Parameters Name Type DescriptiontranslateY
Number
Return
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-02 UTC."],[[["`AffineTransformBuilder` helps create custom transformations for objects in Google Slides, like scaling or shearing."],["It provides methods to set scaling, shearing, and translation values for the X and Y coordinates."],["The `build()` method finalizes the transformation and returns an `AffineTransform` object, ready to be applied."],["This builder uses a fluent interface, allowing you to chain methods together for concise transformation definitions."]]],["`AffineTransformBuilder` constructs `AffineTransform` objects, defaulting to the identity transform. It uses methods like `setScaleX`, `setScaleY`, `setShearX`, `setShearY`, `setTranslateX`, and `setTranslateY` to modify the transformation elements. Each 'set' method takes a number parameter, and returns the builder. The `build()` method creates the `AffineTransform` object with the specified elements.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4