Update image-frame-renderer.ts

This commit is contained in:
syuilo 2025-11-02 16:10:21 +09:00
parent a54b4f2fd9
commit 1398a81d59
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ export class ImageFrameRenderer {
const renderWidth = imageAreaW + paddingLeft + paddingRight;
const renderHeight = imageAreaH + paddingTop + paddingBottom;
const topLabelCanvasCtx = await this.renderLabel(renderWidth, paddingBottom, paddingLeft, paddingRight, imageAreaH, params.labelTop);
const topLabelCanvasCtx = await this.renderLabel(renderWidth, paddingTop, paddingLeft, paddingRight, imageAreaH, params.labelTop);
const topLabelImage = topLabelCanvasCtx.getImageData(0, 0, topLabelCanvasCtx.canvas.width, topLabelCanvasCtx.canvas.height);
this.effector.registerTexture('topLabel', topLabelImage);