fix padding function of imgScalePadding()

This commit is contained in:
ton
2023-04-14 03:28:11 +00:00
parent 39b417dd94
commit 69220a127d

View File

@@ -122,7 +122,7 @@ end
:buttomRight will place an image at top-left of a frame(dimension x dimension) and fill :buttomRight will place an image at top-left of a frame(dimension x dimension) and fill
the rest of the frame with RGB(0,0,0) the rest of the frame with RGB(0,0,0)
""" """
function imgScalePadding(img::T, dimension::Integer, paddingType::Symbol=:none) where T <:DenseMatrix{RGB{N0f8}} function imgScalePadding(img::T, dimension::Integer; paddingType::Symbol=:none) where T <:DenseMatrix{RGB{N0f8}}
h, w = size(img) # high = vertical length, width = horizonal length h, w = size(img) # high = vertical length, width = horizonal length
primaryDimension = w > h ? w : h primaryDimension = w > h ? w : h