Tonatiúh wrote:
As an alternative, there is Paint.Net
for free download. This is a very fine and light imaging application which may substitute Windows Paint over the .NET Framework (I have meet it through a link given somewhere here at C9 by Jamie).
What I have alrready tested is copying the image from Word to the clipboard, then paste it onto Paint.Net and finally, save as (export) one of the bit map formats supported: png, jpg, gif, bmp or tiff.
Tonatiúh
GDI+ can convert a Tiff to anything. Why waste your time with a third party? (free or not)
http://bobpowell.net/faqmain.htmhere is a sample (from a bigger program thats been in production for a year and half, so it works GRIN):
public static bool CreateThumb(FileInfo ToThumb, DirectoryInfo SaveTo, int WidthInPixels, string ThumbNailSuffix)
{
Regex R = new Regex("(bmp|jpeg|jpg|gif|tiff|png)$", RegexOptions.IgnoreCase);
if (ToThumb.Exists)
{
if (R.IsMatch(ToThumb.FullName))
{
using (Image IMG = Image.FromFile(ToThumb.FullName))
{
GraphicsUnit GU = GraphicsUnit.Pixel;
RectangleF Bounds = IMG.GetBounds(ref GU);
if (WidthInPixels > Bounds.Width)
{
WidthInPixels = (int)Bounds.Width;
}
int HeightInPixels = (int)((WidthInPixels/Bounds.Width)*Bounds.Height);
using (Image Thumb = IMG.GetThumbnailImage(WidthInPixels, HeightInPixels, null, IntPtr.Zero))
{
int FinalInstanceOfPeriod = ToThumb.Name.LastIndexOf('.');
string FinalPath = string.Format("{0}/{1}", SaveTo.FullName, ToThumb.Name.Insert(FinalInstanceOfPeriod, ThumbNailSuffix));
Thumb.Save(FinalPath);
}
}
return true;
}
}