/// <summary> /// Constructs a new Image that can be added to a Page containing the /// image data in the given byte array. /// </summary> /// <param name="image"> /// The byte array containing our image data. /// </param> public ImageObject(byte[] image) { Image = new ImageContent(image); }
/// <summary> /// Constructs a new Image that can be inserted into an Outline /// containing the data copied from the specified Image. /// </summary> /// <param name="clone">The <see cref="ImageContent"/> whose data is to be copied to /// the new Image.</param> public ImageContent(ImageContent clone) { ImageData = clone.ImageData; }
/// <summary> /// Constructs a new Image that can be added to a Page containing the /// image data in the specified file. /// </summary> /// <param name="file"> /// The <see cref="FileInfo"/> containing our image data. /// </param> public ImageObject(FileInfo file) { Image = new ImageContent(file); }