Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, February 19, 2008 3:33:43 AM(UTC)
brunopacola

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"

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, February 19, 2008 11:30:14 PM(UTC)
Maen Hasan

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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.051 seconds.