Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
ChingYen  
#1 Posted : Monday, August 10, 2009 12:41:12 AM(UTC)
ChingYen

Rank: Advanced Member

Groups: Member
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):
Frame3.png
Alex Kon  
#2 Posted : Tuesday, August 11, 2009 3:21:38 AM(UTC)
Alex Kon

Rank: Advanced Member

Groups: Member
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
Hello,

Try CombineMode.AlphaOverlapped.

Best regards.
Alex Kon
Users browsing this topic
Guest
Similar Topics
Image Overlay (Discussions – Graphics Mill)
by ChingYen 5/10/2011 7:25:25 PM(UTC)
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.