This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#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 ... ?
Thanks.
#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.