Skip to content

Commit e00e4c9

Browse files
update Open Source Docs from Roblox internal teams
1 parent 8d61564 commit e00e4c9

File tree

1 file changed

+33
-8
lines changed

1 file changed

+33
-8
lines changed

content/en-us/reference/engine/classes/EditableImage.yaml

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,30 +189,55 @@ methods:
189189
capabilities: []
190190
writeCapabilities: []
191191
- name: EditableImage:DrawImageTransformed
192-
summary: ''
193-
description: ''
194-
code_samples: []
192+
summary: |
193+
Draws an image into this `Class.EditableImage` with transformations
194+
including scaling and rotation, placing it at the specified position.
195+
description: |
196+
This method lets you draw an `EditableImage` into this `EditableImage`
197+
with transformations applied, such as scaling and rotation. The position
198+
parameter specifies where the pivot point of the source image will be
199+
placed on this image after transformations. Positions outside the canvas
200+
bounds are allowed such that only part of the new image is drawn.
201+
code_samples:
202+
- EditableImage-DrawImageTransformed
203+
- EditableImage-DrawImageTransformed-Crop
195204
parameters:
196205
- name: position
197206
type: Vector2
198207
default:
199-
summary: ''
208+
summary: |
209+
Position in pixels where the pivot point of the source image will be
210+
placed on this image.
200211
- name: scale
201212
type: Vector2
202213
default:
203-
summary: ''
214+
summary: |
215+
Scaling factors for the source image along the X and Y axes.
204216
- name: rotation
205217
type: float
206218
default:
207-
summary: ''
219+
summary: |
220+
The rotation angle in degrees, applied around the pivot point of the
221+
source image.
208222
- name: image
209223
type: Object
210224
default:
211-
summary: ''
225+
summary: |
226+
The source `Class.EditableImage` to be drawn into this image.
212227
- name: options
213228
type: Dictionary?
214229
default:
215-
summary: ''
230+
summary: |
231+
Optional dictionary for additional configuration:
232+
- `CombineType`: Specifies how the pixels of the source image blend
233+
with those of the destination. Default is
234+
`Enum.ImageCombineType.AlphaBlend`.
235+
- `SamplingMode`: Specifies the sampling method (e.g. `Default` for
236+
bilinear or `Pixelated` for nearest neighbor). Default is
237+
`Enum.ResamplerMode.Default`.
238+
- `PivotPoint`: Specifies the pivot point within the source image for
239+
scaling and rotation. Default is the center of the source image
240+
(i.e. `Image.Size / 2`).
216241
returns:
217242
- type: void
218243
summary: ''

0 commit comments

Comments
 (0)