Rank: Advanced Member
Groups: Guest
Joined: 3/3/2008(UTC) Posts: 185
Thanks: 8 times
|
Hi, We had something like this... but seems like the frame3.png will not draw. It will only draw if we set the resultImage background color to some valid color. Code: Public Function ApplyGraphicFrame(ByVal _bm As Aurigma.GraphicsMill.Bitmap) As Aurigma.GraphicsMill.Bitmap
Dim frameBitmap As New Aurigma.GraphicsMill.Bitmap("C:\Frame3.png")
Dim resultImage As New Aurigma.GraphicsMill.Bitmap(frameBitmap.Width, frameBitmap.Height, PixelFormat.Format32bppArgb)
'Draw foreground image on background with transparency
frameBitmap.Draw(resultImage, 0, 0, _
frameBitmap.Width, frameBitmap.Height, _
Aurigma.GraphicsMill.Transforms.CombineMode.Alpha, 1.0F, _
Aurigma.GraphicsMill.Transforms.InterpolationMode.MediumQuality)
Return resultImage
End Function
Please advice. Edited by user Monday, August 10, 2009 5:44:07 AM(UTC)
| Reason: Not specified ChingYen attached the following image(s):
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 1/31/2005(UTC) Posts: 458
Was thanked: 5 time(s) in 5 post(s)
|
Hello,
Try CombineMode.AlphaOverlapped.
Best regards. Alex Kon |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.