Merge two images using tranparency
Posted: Mon Dec 16, 2013 12:45 pm
Hi,
I need to merge two images.
The second image is rotated using:
Stat = oGdPictureImaging.RotateAngleBackColor(ImageRotated, angle, oGdPictureImaging.ARGB(0, 128, 128, 128))
to keep the borders transparent.
Merge:
Stat = oGdPictureImaging.DrawGdPictureImage(ImageRotaed, ImageDestination, DestX, DestY, 1024, 768, System.Drawing.Drawing2D.InterpolationMode.Bicubic)
Everything looks OK, but the resulting borders from rotation are transferred into the Destination image.
What did I wrong?
Thanks for help.
GRUENI
I need to merge two images.
The second image is rotated using:
Stat = oGdPictureImaging.RotateAngleBackColor(ImageRotated, angle, oGdPictureImaging.ARGB(0, 128, 128, 128))
to keep the borders transparent.
Merge:
Stat = oGdPictureImaging.DrawGdPictureImage(ImageRotaed, ImageDestination, DestX, DestY, 1024, 768, System.Drawing.Drawing2D.InterpolationMode.Bicubic)
Everything looks OK, but the resulting borders from rotation are transferred into the Destination image.
What did I wrong?
Thanks for help.
GRUENI