跳轉至內容

Rebol 程式設計/resize-face

來自華夏公益教科書,開放的書籍,開放的世界
RESIZE-FACE face size /x /y /no-show 

調整人臉大小。

RESIZE-FACE 是一個函式值。

  • face -- (型別:任何)
  • size -- (型別:數字對)
  • /x -- 只調整寬度
  • /y -- 只調整高度
  • /no-show -- 暫時不顯示更改

原始碼

[編輯 | 編輯原始碼]
resize-face: func [
    "Resize a face." 
    face 
    size [number! pair!] 
    /x "Resize only width" 
    /y "Resize only height" 
    /no-show "Do not show change yet" 
    /local access
][
    if all [
        access: get in face 'access 
        in access 'resize-face*
    ] [
        access/resize-face* face size x y
    ] 
    if not no-show [show face] 
    face
]
華夏公益教科書