This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, February 19, 2008 3:33:43 AM(UTC)
Groups: Registered
Posts: 4
I using code:
RasterCodecs.Startup()
Dim codecs As New RasterCodecs()
codecs.ThrowExceptionsOnInvalidImages = True
Dim leadImage As RasterImage = codecs.Load("E:\Bruno Pacola - Documentos\Bruno\Projetos\Clientes\Helton Peres\MT Fazendas\MTFazendasFotos\MTFazendasFotos\01400_musicshapes_1280x800.jpg")
Leadtools.RasterSupport.Unlock...
Dim command As FeatherAlphaBlendCommand = New FeatherAlphaBlendCommand
command.DestinationRectangle = New Rectangle(0, 0, leadImage.Width \ 2, leadImage.Height \ 2)
command.MaskImage = codecs.Load("E:\Bruno Pacola - Documentos\Bruno\Projetos\Clientes\Helton Peres\MT Fazendas\MTFazendasFotos\MTFazendasFotos\MarcaMTFazendas.png", 24, CodecsLoadByteOrder.Bgr, 1, 1)
command.SourceImage = codecs.Load("E:\Bruno Pacola - Documentos\Bruno\Projetos\Clientes\Helton Peres\MT Fazendas\MTFazendasFotos\MTFazendasFotos\MarcaMTFazendas.png", 24, CodecsLoadByteOrder.Bgr, 1, 1)
command.SourcePoint = New Point(0, 0)
command.Run(leadImage)
codecs.Save(leadImage, "E:\Bruno Pacola - Documentos\Bruno\Projetos\Clientes\Helton Peres\MT Fazendas\MTFazendasFotos\MTFazendasFotos\01400_musicshapes_1280x8002.jpg", RasterImageFormat.Jpeg, 24)
command.SourceImage.Dispose()
RasterCodecs.Shutdown()
Error line "command.Run(leadImage)"
Message:
"Operation failed"
#2
Posted
:
Tuesday, February 19, 2008 11:30:14 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
I checked your code and the FeatherAlphaBlendCommand works correctly.
Do you face this issue with any images?
What is the build number (version info) of the LEADTOOLS .Net DLLs that you use?
Thanks,
Maen Badwan
LEADTOOLS Technical Support
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.