/// <summary> /// Sets a property item with the given id to the collection within the current /// <see cref="ImageFactory"/> instance. /// </summary> /// <param name="imageFactory">The image factory.</param> /// <param name="id">The id to assign to the property item.</param> /// <param name="type">The type to assign to the property item.</param> /// <param name="length">The length to assign to the property item.</param> /// <param name="value">The value to assign to the property item.</param> /// <returns> /// The <see cref="ImageFactory"/>. /// </returns> private static ImageFactory SetPropertyItem( this ImageFactory imageFactory, ExifPropertyTag id, ExifPropertyTagType type, int length, byte[] value) { PropertyItem item = FormatUtilities.CreatePropertyItem(); item.Id = (int)id; item.Type = (short)type; item.Len = length; item.Value = value; imageFactory.ExifPropertyItems[item.Id] = item; return(imageFactory); }
/// <summary> /// Sets a property item with the given id to the collection within the current /// <see cref="ImageFactory"/> instance. /// </summary> /// <param name="imageFactory">The image factory.</param> /// <param name="id">The id to assign to the property item.</param> /// <param name="type">The type to assign to the property item.</param> /// <param name="length">The length to assign to the property item.</param> /// <param name="value">The value to assign to the property item.</param> /// <returns> /// The <see cref="ImageFactory"/>. /// </returns> private static ImageFactory SetPropertyItem( this ImageFactory imageFactory, ExifPropertyTag id, ExifPropertyTagType type, int length, byte[] value) { PropertyItem item = FormatUtilities.CreatePropertyItem(); item.Id = (int)id; item.Type = (short)type; item.Len = length; item.Value = value; imageFactory.ExifPropertyItems[item.Id] = item; return imageFactory; }