public EXIFPropertyItem(PropertyItem prop) { // Does KnownEXIFCodes have a corresponding entry? if (Enum.IsDefined(exifCode.GetType(), prop.Id)) { exifCode = (KnownEXIFIDCodes)prop.Id; } else { exifCode = KnownEXIFIDCodes.UnknownCode; } exifType = (EXIFPropertyTypes)prop.Type; data = prop.Value; this.type = prop.Type; this.id = prop.Id; this.len = prop.Len; /* * Console.WriteLine("{0:X8} {1} {2} {3}", prop.Id, prop.Type, prop.Len, Enum.GetName(exifCode.GetType(), exifCode)); * if (exifType == EXIFPropertyTypes.ExifTypeString) * { * Console.WriteLine(this.ParsedString); * } * /* * foreach (byte b in data) * { * Console.Write("{0:X2} ", b); * } * Console.WriteLine(""); */ }
public EXIFPropertyItem GetItem(KnownEXIFIDCodes Code) { foreach (EXIFPropertyItem Item in EXIFPropertyItems) { if (Item.EXIFCode == Code) { return(Item); } } return(null); }
public EXIFPropertyItem(PropertyItem prop) { if (Enum.IsDefined(this.exifCode.GetType(), prop.Id)) { this.exifCode = (KnownEXIFIDCodes)prop.Id; } else { this.exifCode = KnownEXIFIDCodes.UnknownCode; } this.exifType = (EXIFPropertyTypes)prop.Type; this.data = prop.Value; this.type = prop.Type; this.id = prop.Id; this.len = prop.Len; }
public EXIFPropertyItem(PropertyItem prop) { // Does KnownEXIFCodes have a corresponding entry? if (Enum.IsDefined(exifCode.GetType(), prop.Id)) { exifCode = (KnownEXIFIDCodes)prop.Id; } else { exifCode = KnownEXIFIDCodes.UnknownCode; } exifType = (EXIFPropertyTypes)prop.Type; data = prop.Value; this.type = prop.Type; this.id = prop.Id; this.len = prop.Len; }
public EXIFPropertyItem(PropertyItem prop) { // Does KnownEXIFCodes have a corresponding entry? if (Enum.IsDefined(exifCode.GetType(), prop.Id)) { exifCode = (KnownEXIFIDCodes)prop.Id; } else { exifCode = KnownEXIFIDCodes.UnknownCode; } exifType = (EXIFPropertyTypes)prop.Type; data = prop.Value; this.type = prop.Type; this.id = prop.Id; this.len = prop.Len; }
public EXIFPropertyItem() { exifCode = 0; exifType = EXIFPropertyTypes.ExifTypeUndefined; }
public EXIFPropertyItem() { exifCode = 0; exifType = EXIFPropertyTypes.ExifTypeUndefined; }
public EXIFPropertyItem GetItem(KnownEXIFIDCodes Code) { foreach (EXIFPropertyItem Item in EXIFPropertyItems) { if (Item.EXIFCode == Code) { return Item; } } return null; }