fix padding function of imgScalePadding()
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user