Support Center

Compression, hdib in Imageman.Net

Sathyaraj Jan 14, 2014 01:46AM EST

I am migrating vb 6 application with Imageman to .Net application. So, I initially I tried with the trial version of Imageman .Net, before purchasing it. I am not getting equivalent code for the following with Imageman.Net: pobjImageControl.Compression = ImvbLib.enumCompression.Group4.

Also, ImageControl.hDIB is throwing the error: 'hDIB' is not a member of 'DTI.ImageMan.Winforms.Viewer'. (ImageControl is the name of the control, the same in vb6 is a imageman control). Any help will be thankful.

1 Data Techniques Response

Up 80 Rated Down
DTI Support  Data Techniques Employee Jan 14, 2014 09:05AM EST

Hello,

As you have noticed the interface for the ImageMan.Net components is very different than the ActiveX controls.

To save an image using TIFF and Group4 you will need to create a TifEncoder and set its Compression property to Group4\, then use that encoder to save the image like in this code:

[Visual Basic]

Dim tifAs TifEncoder = New TifEncoder()

tif.Compression = Group4

viewer1.Save("image.tif", tif)


The ImImage object has an hDIB property which returns the hDIB for that image.

You can access the complete online help at: http://www.data-tech.com/help/imnet/webframe.html

The How To section should cover most of the things you will need to do.

Thanks for your interest in our products and please let us know if you have any questions.

Sincerely,
Sean
Data Techniques Support

This question is closed to new answers.

Contact Us