想在圖片上依圖片比例標記出 S03, S04
https://i.imgur.com/WVdq0Ja.jpeg
大概知道怎麼做,但是懶得寫
我給它下面的函式定義它就幫我生出來實作了
Given the following declaration in TypeScript, implement
getTargetingBoxRelativeDimension
type TargetingBoxDimension = {
x: number;
y: number;
width: number;
height: number;
};
type ImageSize = {
width: number;
height: number;
};
function getTargetingBoxRelativeDimension(
imageAbsoluteSize: ImageSize,
imageCurrentSize: ImageSize,
targetingBoxAbsoluteDimension: TargetingBoxDimension,
): TargetingBoxDimension {
}
非常好 ChatGPT
https://i.imgur.com/kYj5ufk.png