Skip to content

Commit f44f3db

Browse files
committed
docs: add small clarification on borderType: constant
1 parent b48970f commit f44f3db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/useful-tips/transform-function-and-its-parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ You can check out [this video](https://www.youtube.com/watch?v=AqscP7rc8_M) that
7373

7474
To understand what `borderType` is, we need to get back to interpolation for a moment. When you transform an image (rotate, scale, skew, etc.), the new pixel positions often map to coordinates in the original image that don't exist - for example, negative coordinates or coordinates beyond the image edges. The `borderType` tells the algorithm how to handle these "out-of-bounds" pixels. There are several approaches:
7575

76-
`constant` - Fill border areas with a constant color value (specified by [`borderValue`](./transform-function-and-its-parameters.md#border-value))
76+
`constant` - Fill border areas with a constant color value (specified by [`borderValue`](./transform-function-and-its-parameters.md#border-value)).The value by default is 0.
7777

7878
`reflect` - Mirror edge pixels: [1,2,3,4][2,1,1,2,3,4,4,3]
7979

0 commit comments

Comments
 (0)