Class AffineTransformBuilder
アフィン変換ビルダーAffineTransform
オブジェクトのビルダー。デフォルトは ID 変換です。
AffineTransformBuilder#build()
を呼び出して AffineTransform
オブジェクトを取得します。
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 ]
}
詳細なドキュメント
setTranslateY(translateY)
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-22 UTC。
[null,null,["最終更新日 2024-12-22 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"]]