UtilImageOverlayImages Method
Overlay a Image over another Image used as background.
Namespace: DevCase.Core.Media.GraphicsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Image OverlayImages(
Image backImage,
Image topImage,
int topPosX = 0,
int topPosY = 0
)
Public Shared Function OverlayImages (
backImage As Image,
topImage As Image,
Optional topPosX As Integer = 0,
Optional topPosY As Integer = 0
) As Image
Dim backImage As Image
Dim topImage As Image
Dim topPosX As Integer
Dim topPosY As Integer
Dim returnValue As Image
returnValue = UtilImage.OverlayImages(backImage,
topImage, topPosX, topPosY)
public:
static Image^ OverlayImages(
Image^ backImage,
Image^ topImage,
int topPosX = 0,
int topPosY = 0
)
static member OverlayImages :
backImage : Image *
topImage : Image *
?topPosX : int *
?topPosY : int
(* Defaults:
let _topPosX = defaultArg topPosX 0
let _topPosY = defaultArg topPosY 0
*)
-> Image
No code example is currently available or this language may not be supported.
- backImage Image
-
The background Image.
- topImage Image
-
The topmost Image.
- topPosX Int32 (Optional)
-
An adjustment of the "X" position of the topmost Image.
- topPosY Int32 (Optional)
-
An adjustment of the "Y" position of the topmost Image.
Image
The overlayed image.
This is a code example.
No code example is currently available or this language may not be supported.
Dim backImg As Image = Image.FromFile("C:\back.jpg")
Dim topImg As Image = Image.FromFile("C:\top.png")
Dim overlay As Image = OverlayImages(backImg, topImg, topPosX:=+5, topPosY:=-15)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
ArgumentNullException
|
backImage or topImage
|
ArgumentException
|
Image bounds are greater than background image.;topImage
|