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

Notification

Icon
Error

Options
Go to last post Go to first unread
san  
#1 Posted : Saturday, September 02, 2006 8:27:27 PM(UTC)
san

Rank: Member

Groups: Member
Joined: 8/1/2006(UTC)
Posts: 33

Dear Alex

or merging the two image with mask effect i want to use combiner class.
PLZ , provide me a code sample for this as Soon as possible .


THANX
san

Alex Kon  
#2 Posted : Sunday, September 03, 2006 8:19:19 PM(UTC)
Alex Kon

Rank: Advanced Member

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

Was thanked: 5 time(s) in 5 post(s)
Hi San,

Here is small code sample which illustrates how to use masks with combiner transform:
Code:
Dim combiner As New Aurigma.GraphicsMill.Transforms.Combiner
	
Dim srcImage As New Aurigma.GraphicsMill.Bitmap
Dim dstImage As New Aurigma.GraphicsMill.Bitmap
srcImage.Load("y:\Test\smallcat.jpg")
dstImage.Load("y:\Test\birthday6.jpg")
	
Dim mask As New Aurigma.GraphicsMill.Bitmap(dstImage.Width, dstImage.Height, Aurigma.GraphicsMill.PixelFormat.Format24bppRgb)
Dim g As System.Drawing.Graphics = mask.GetGdiplusGraphics()
Try
    g.FillEllipse(System.Drawing.Brushes.White, 40, 40, 120, 120)
Finally
    g.Dispose()
End Try
mask.ColorManagement.ConvertToContinuous(ColorSpace.GrayScale, False, False)
	
combiner.CombineMode = Aurigma.GraphicsMill.Transforms.CombineMode.Alpha
combiner.SourceBitmap = srcImage
combiner.SourceRectangle = New System.Drawing.RectangleF(0, 0, srcImage.Width, srcImage.Height)
combiner.DestinationRectangle = New System.Drawing.RectangleF(40, 40, 120, 120)
combiner.ApplyMaskTransform(dstImage, mask)
	
dstImage.Save("y:\Test\maskedCombineTest.jpg")

Edited by user Wednesday, December 19, 2007 2:54:53 PM(UTC)  | Reason: Not specified

Users browsing this topic
Similar Topics
Merging Two Images With Combiner Class (Discussions – Graphics Mill)
by san 9/11/2006 12:43:41 AM(UTC)
Combine Two Image With combiner Class (Discussions – Graphics Mill)
by san 9/7/2006 12:13:42 AM(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.