Class AffineTransformBuilder
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)
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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"]]