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



Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, July 18, 2006 4:31:55 AM(UTC)


Groups: Registered
Posts: 1

I am apsolutlly new, did not work with LEAD before.

For new project we want to switch to dNet version from "old" LEAD activeX.

I have to rewrite next 3 lines [that loading / coverting  image in TIF [FILE_CCITT_GROUP4] format.,to dNet [c#].


   Dim bLeed() As Byte

    m_leadform.LEAD1.Bitmap = 0
    m_leadform.LEAD1.Load ImageFilepath, 0, 0, -1
    bLeed= m_leadform.LEAD1.SaveArray(FILE_CCITT_GROUP4, 0, 0)


Could you help me?

Could you point to particular example or ... ?



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 : Wednesday, July 19, 2006 1:26:13 AM(UTC)


Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Assuming you have an instance of the RasterImageViewer control named Viewer placed on your form, the code should look something like this:

RasterCodecs codec = new RasterCodecs();
Viewer.Image = codec.Load(ImageFilePath);

MemoryStream stream = new MemoryStream();
codec.Save(Viewer.Image, stream, ...);

byte[] array = stream.ToArray();

Let me know if this helps.

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.053 seconds.