|
// -- FILE ------------------------------------------------------------------
// name : RtfConvertedImageInfo.cs
// project : RTF Framelet
// created : Jani Giannoudis - 2008.10.13
// language : c#
// environment: .NET 2.0
// copyright : (c) 2004-2013 by Jani Giannoudis, Switzerland
// --------------------------------------------------------------------------
using System;
using System.Drawing;
using System.Drawing.Imaging;
namespace Itenso.Rtf.Converter.Image
{
// ------------------------------------------------------------------------
public class RtfConvertedImageInfo : IRtfConvertedImageInfo
{
// ----------------------------------------------------------------------
public RtfConvertedImageInfo( string fileName, ImageFormat format, Size size )
{
if ( fileName == null )
{
throw new ArgumentNullException( "fileName" );
}
this.fileName = fileName;
this.format = format;
this.size = size;
} // RtfConvertedImageInfo
// ----------------------------------------------------------------------
public string FileName
{
get { return fileName; }
} // FileName
// ----------------------------------------------------------------------
public ImageFormat Format
{
get { return format; }
} // Format
// ----------------------------------------------------------------------
public Size Size
{
get { return size; }
} // Size
// ----------------------------------------------------------------------
public override string ToString()
{
return fileName + " " + format + " " + size.Width + "x" + size.Height;
} // ToString
// ----------------------------------------------------------------------
// members
private readonly string fileName;
private readonly ImageFormat format;
private readonly Size size;
} // class RtfConvertedImageInfo
} // namespace Itenso.Rtf.Converter.Image
// -- EOF -------------------------------------------------------------------
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
👨 Senior .NET Software Engineer
🚀 My Open Source Projects
-
Time Period Library 👉
GitHub
-
Payroll Engine 👉
GitHub
Feedback and contributions are welcome.