08-21-2007, 13:48
|
brunopacola
Joined on 05-08-2007
Posts 5
|
Re: Combine two images (Mask, Transparency)
|
 
 
|
|
|
I'm trying...
Code example:
Public Sub
FeatherAlphaBlendCommandExample() RasterCodecs.Startup() Dim codecs As New
RasterCodecs() codecs.ThrowExceptionsOnInvalidImages = True
Dim leadImage
As RasterImage = codecs.Load("C:\Program Files\LEAD Technologies\LEADTOOLS
15\Images\Master.jpg")
Dim command
As FeatherAlphaBlendCommand = New
FeatherAlphaBlendCommand command.DestinationRectangle = New Rectangle(0, 0, leadImage.Width \ 2, leadImage.Height \
2) command.MaskImage = codecs.Load("C:\Program
Files\LEAD Technologies\LEADTOOLS 15\Images\Image3.cmp", 24,
CodecsLoadByteOrder.Bgr, 1, 1) command.SourceImage = codecs.Load("C:\Program Files\LEAD Technologies\LEADTOOLS
15\Images\Image2.cmp", 24, CodecsLoadByteOrder.Bgr, 1,
1) command.SourcePoint = New Point(0,
0) command.Run(leadImage) codecs.Save(leadImage, "C:\Program Files\LEAD Technologies\LEADTOOLS
15\Images\Result.jpg", RasterImageFormat.Jpeg,
24)
command.SourceImage.Dispose()
RasterCodecs.Shutdown() End Sub
But..message error:
"Leadtools Pro features are not enabled"
|
|
|
|
|
Report
|
|
|
|