日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

jpeg 标志

發布時間:2024/8/1 编程问答 44 豆豆
生活随笔 收集整理的這篇文章主要介紹了 jpeg 标志 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

C#代碼
  • DialogUtil?openFolder?=?new?DialogUtil(); ??
  • if?(openFolder.ShowFolderDialog()?==?DialogResult.OK) ??
  • { ??
  • ????DirectoryInfo?source?=?new?DirectoryInfo(openFolder.Path); ??
  • ????foreach?(FileInfo?fi?in?source.GetFiles("*.jpg")) ??
  • ????{ ??
  • ????????ExifManager?exif?=?new?ExifManager(fi.FullName); ??
  • ????????exif.DateTimeOriginal?=?exif.DateTimeOriginal.AddHours(12); ??
  • ????????exif.DateTimeDigitized?=?exif.DateTimeDigitized.AddHours(12); ??
  • ????????exif.Save(fi.DirectoryName?+?"\\new\\"?+?fi.Name); ??
  • ????????exif.Dispose(); ??
  • ????} ??
  • }??
  • DialogUtil openFolder = new DialogUtil();if (openFolder.ShowFolderDialog() == DialogResult.OK){DirectoryInfo source = new DirectoryInfo(openFolder.Path);foreach (FileInfo fi in source.GetFiles("*.jpg")){ExifManager exif = new ExifManager(fi.FullName);exif.DateTimeOriginal = exif.DateTimeOriginal.AddHours(12);exif.DateTimeDigitized = exif.DateTimeDigitized.AddHours(12);exif.Save(fi.DirectoryName + "\\new\\" + fi.Name);exif.Dispose();}}

    C#代碼 ?
  • using?System; ??
  • using?System.Collections.Generic; ??
  • using?System.Text; ??
  • ??
  • namespace?ExifShow ??
  • { ??
  • //? ??
  • //?Utility?class?for?working?with?EXIF?data?in?images.?Provides?abstraction ??
  • //?for?most?common?data?and?generic?utilities?for?work?with?all?other.? ??
  • //? ??
  • //? ??
  • //?Copyright?(c)?Michal?A.?Valá?ek?-?Altair?Communications,?2003-2005 ??
  • //?Copmany:?http://software.altaircom.net,?E-mail:?support@altaircom.net ??
  • //?Private:?http://www.rider.cz,?E-mail:?rider@rider.cz ??
  • //?This?is?free?software?licensed?under?GNU?Lesser?General?Public?License ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //?[altair]?12.06.2004?Added?capability?to?write?EXIF?data ??
  • //?[altair]?11.07.2004?Added?option?to?change?encoding ??
  • //?[altair]?04.09.2005?Changed?source?of?Width?and?Height?properties?from?EXIF?to?image ??
  • //?[altair]?05.09.2005?Code?clean-up?and?minor?changes ??
  • //?[marco.ridoni@virgilio.it]?02-11-2006?C#?translation ??
  • //? ??
  • public?class?ExifManager?:?IDisposable ??
  • { ??
  • ??
  • private?System.Drawing.Bitmap?_Image; ??
  • private?System.Text.Encoding?_Encoding?=?System.Text.Encoding.UTF8; ?
  • ?
  • #region?Type?declarations ??
  • ??
  • //? ??
  • //?Contains?possible?values?of?EXIF?tag?names?(ID) ??
  • //? ??
  • //?See?GdiPlusImaging.h ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • ??
  • public?enum?TagNames?:?int??
  • { ??
  • ExifIFD?=?0x8769, ??
  • GpsIFD?=?0x8825, ??
  • NewSubfileType?=?0xFE, ??
  • SubfileType?=?0xFF, ??
  • ImageWidth?=?0x100, ??
  • ImageHeight?=?0x101, ??
  • BitsPerSample?=?0x102, ??
  • Compression?=?0x103, ??
  • PhotometricInterp?=?0x106, ??
  • ThreshHolding?=?0x107, ??
  • CellWidth?=?0x108, ??
  • CellHeight?=?0x109, ??
  • FillOrder?=?0x10A, ??
  • DocumentName?=?0x10D, ??
  • ImageDescription?=?0x10E, ??
  • EquipMake?=?0x10F, ??
  • EquipModel?=?0x110, ??
  • StripOffsets?=?0x111, ??
  • Orientation?=?0x112, ??
  • SamplesPerPixel?=?0x115, ??
  • RowsPerStrip?=?0x116, ??
  • StripBytesCount?=?0x117, ??
  • MinSampleValue?=?0x118, ??
  • MaxSampleValue?=?0x119, ??
  • XResolution?=?0x11A, ??
  • YResolution?=?0x11B, ??
  • PlanarConfig?=?0x11C, ??
  • PageName?=?0x11D, ??
  • XPosition?=?0x11E, ??
  • YPosition?=?0x11F, ??
  • FreeOffset?=?0x120, ??
  • FreeByteCounts?=?0x121, ??
  • GrayResponseUnit?=?0x122, ??
  • GrayResponseCurve?=?0x123, ??
  • T4Option?=?0x124, ??
  • T6Option?=?0x125, ??
  • ResolutionUnit?=?0x128, ??
  • PageNumber?=?0x129, ??
  • TransferFuncition?=?0x12D, ??
  • SoftwareUsed?=?0x131, ??
  • DateTime?=?0x132, ??
  • Artist?=?0x13B, ??
  • HostComputer?=?0x13C, ??
  • Predictor?=?0x13D, ??
  • WhitePoint?=?0x13E, ??
  • PrimaryChromaticities?=?0x13F, ??
  • ColorMap?=?0x140, ??
  • HalftoneHints?=?0x141, ??
  • TileWidth?=?0x142, ??
  • TileLength?=?0x143, ??
  • TileOffset?=?0x144, ??
  • TileByteCounts?=?0x145, ??
  • InkSet?=?0x14C, ??
  • InkNames?=?0x14D, ??
  • NumberOfInks?=?0x14E, ??
  • DotRange?=?0x150, ??
  • TargetPrinter?=?0x151, ??
  • ExtraSamples?=?0x152, ??
  • SampleFormat?=?0x153, ??
  • SMinSampleValue?=?0x154, ??
  • SMaxSampleValue?=?0x155, ??
  • TransferRange?=?0x156, ??
  • JPEGProc?=?0x200, ??
  • JPEGInterFormat?=?0x201, ??
  • JPEGInterLength?=?0x202, ??
  • JPEGRestartInterval?=?0x203, ??
  • JPEGLosslessPredictors?=?0x205, ??
  • JPEGPointTransforms?=?0x206, ??
  • JPEGQTables?=?0x207, ??
  • JPEGDCTables?=?0x208, ??
  • JPEGACTables?=?0x209, ??
  • YCbCrCoefficients?=?0x211, ??
  • YCbCrSubsampling?=?0x212, ??
  • YCbCrPositioning?=?0x213, ??
  • REFBlackWhite?=?0x214, ??
  • ICCProfile?=?0x8773, ??
  • Gamma?=?0x301, ??
  • ICCProfileDescriptor?=?0x302, ??
  • SRGBRenderingIntent?=?0x303, ??
  • ImageTitle?=?0x320, ??
  • Copyright?=?0x8298, ??
  • ResolutionXUnit?=?0x5001, ??
  • ResolutionYUnit?=?0x5002, ??
  • ResolutionXLengthUnit?=?0x5003, ??
  • ResolutionYLengthUnit?=?0x5004, ??
  • PrintFlags?=?0x5005, ??
  • PrintFlagsVersion?=?0x5006, ??
  • PrintFlagsCrop?=?0x5007, ??
  • PrintFlagsBleedWidth?=?0x5008, ??
  • PrintFlagsBleedWidthScale?=?0x5009, ??
  • HalftoneLPI?=?0x500A, ??
  • HalftoneLPIUnit?=?0x500B, ??
  • HalftoneDegree?=?0x500C, ??
  • HalftoneShape?=?0x500D, ??
  • HalftoneMisc?=?0x500E, ??
  • HalftoneScreen?=?0x500F, ??
  • JPEGQuality?=?0x5010, ??
  • GridSize?=?0x5011, ??
  • ThumbnailFormat?=?0x5012, ??
  • ThumbnailWidth?=?0x5013, ??
  • ThumbnailHeight?=?0x5014, ??
  • ThumbnailColorDepth?=?0x5015, ??
  • ThumbnailPlanes?=?0x5016, ??
  • ThumbnailRawBytes?=?0x5017, ??
  • ThumbnailSize?=?0x5018, ??
  • ThumbnailCompressedSize?=?0x5019, ??
  • ColorTransferFunction?=?0x501A, ??
  • ThumbnailData?=?0x501B, ??
  • ThumbnailImageWidth?=?0x5020, ??
  • ThumbnailImageHeight?=?0x502, ??
  • ThumbnailBitsPerSample?=?0x5022, ??
  • ThumbnailCompression?=?0x5023, ??
  • ThumbnailPhotometricInterp?=?0x5024, ??
  • ThumbnailImageDescription?=?0x5025, ??
  • ThumbnailEquipMake?=?0x5026, ??
  • ThumbnailEquipModel?=?0x5027, ??
  • ThumbnailStripOffsets?=?0x5028, ??
  • ThumbnailOrientation?=?0x5029, ??
  • ThumbnailSamplesPerPixel?=?0x502A, ??
  • ThumbnailRowsPerStrip?=?0x502B, ??
  • ThumbnailStripBytesCount?=?0x502C, ??
  • ThumbnailResolutionX?=?0x502D, ??
  • ThumbnailResolutionY?=?0x502E, ??
  • ThumbnailPlanarConfig?=?0x502F, ??
  • ThumbnailResolutionUnit?=?0x5030, ??
  • ThumbnailTransferFunction?=?0x5031, ??
  • ThumbnailSoftwareUsed?=?0x5032, ??
  • ThumbnailDateTime?=?0x5033, ??
  • ThumbnailArtist?=?0x5034, ??
  • ThumbnailWhitePoint?=?0x5035, ??
  • ThumbnailPrimaryChromaticities?=?0x5036, ??
  • ThumbnailYCbCrCoefficients?=?0x5037, ??
  • ThumbnailYCbCrSubsampling?=?0x5038, ??
  • ThumbnailYCbCrPositioning?=?0x5039, ??
  • ThumbnailRefBlackWhite?=?0x503A, ??
  • ThumbnailCopyRight?=?0x503B, ??
  • LuminanceTable?=?0x5090, ??
  • ChrominanceTable?=?0x5091, ??
  • FrameDelay?=?0x5100, ??
  • LoopCount?=?0x5101, ??
  • PixelUnit?=?0x5110, ??
  • PixelPerUnitX?=?0x5111, ??
  • PixelPerUnitY?=?0x5112, ??
  • PaletteHistogram?=?0x5113, ??
  • ExifExposureTime?=?0x829A, ??
  • ExifFNumber?=?0x829D, ??
  • ExifExposureProg?=?0x8822, ??
  • ExifSpectralSense?=?0x8824, ??
  • ExifISOSpeed?=?0x8827, ??
  • ExifOECF?=?0x8828, ??
  • ExifVer?=?0x9000, ??
  • ExifDTOrig?=?0x9003, ??
  • ExifDTDigitized?=?0x9004, ??
  • ExifCompConfig?=?0x9101, ??
  • ExifCompBPP?=?0x9102, ??
  • ExifShutterSpeed?=?0x9201, ??
  • ExifAperture?=?0x9202, ??
  • ExifBrightness?=?0x9203, ??
  • ExifExposureBias?=?0x9204, ??
  • ExifMaxAperture?=?0x9205, ??
  • ExifSubjectDist?=?0x9206, ??
  • ExifMeteringMode?=?0x9207, ??
  • ExifLightSource?=?0x9208, ??
  • ExifFlash?=?0x9209, ??
  • ExifFocalLength?=?0x920A, ??
  • ExifMakerNote?=?0x927C, ??
  • ExifUserComment?=?0x9286, ??
  • ExifDTSubsec?=?0x9290, ??
  • ExifDTOrigSS?=?0x9291, ??
  • ExifDTDigSS?=?0x9292, ??
  • ExifFPXVer?=?0xA000, ??
  • ExifColorSpace?=?0xA001, ??
  • ExifPixXDim?=?0xA002, ??
  • ExifPixYDim?=?0xA003, ??
  • ExifRelatedWav?=?0xA004, ??
  • ExifInterop?=?0xA005, ??
  • ExifFlashEnergy?=?0xA20B, ??
  • ExifSpatialFR?=?0xA20C, ??
  • ExifFocalXRes?=?0xA20E, ??
  • ExifFocalYRes?=?0xA20F, ??
  • ExifFocalResUnit?=?0xA210, ??
  • ExifSubjectLoc?=?0xA214, ??
  • ExifExposureIndex?=?0xA215, ??
  • ExifSensingMethod?=?0xA217, ??
  • ExifFileSource?=?0xA300, ??
  • ExifSceneType?=?0xA301, ??
  • ExifCfaPattern?=?0xA302, ??
  • GpsVer?=?0x0, ??
  • GpsLatitudeRef?=?0x1, ??
  • GpsLatitude?=?0x2, ??
  • GpsLongitudeRef?=?0x3, ??
  • GpsLongitude?=?0x4, ??
  • GpsAltitudeRef?=?0x5, ??
  • GpsAltitude?=?0x6, ??
  • GpsGpsTime?=?0x7, ??
  • GpsGpsSatellites?=?0x8, ??
  • GpsGpsStatus?=?0x9, ??
  • GpsGpsMeasureMode?=?0xA, ??
  • GpsGpsDop?=?0xB, ??
  • GpsSpeedRef?=?0xC, ??
  • GpsSpeed?=?0xD, ??
  • GpsTrackRef?=?0xE, ??
  • GpsTrack?=?0xF, ??
  • GpsImgDirRef?=?0x10, ??
  • GpsImgDir?=?0x11, ??
  • GpsMapDatum?=?0x12, ??
  • GpsDestLatRef?=?0x13, ??
  • GpsDestLat?=?0x14, ??
  • GpsDestLongRef?=?0x15, ??
  • GpsDestLong?=?0x16, ??
  • GpsDestBearRef?=?0x17, ??
  • GpsDestBear?=?0x18, ??
  • GpsDestDistRef?=?0x19, ??
  • GpsDestDist?=?0x1A ??
  • } ??
  • ??
  • ??
  • //? ??
  • //?Real?position?of?0th?row?and?column?of?picture ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • ??
  • public?enum?Orientations ??
  • { ??
  • TopLeft?=?1, ??
  • TopRight?=?2, ??
  • BottomRight?=?3, ??
  • BottomLeft?=?4, ??
  • LeftTop?=?5, ??
  • RightTop?=?6, ??
  • RightBottom?=?7, ??
  • LftBottom?=?8 ??
  • } ??
  • ??
  • ??
  • //? ??
  • //?Exposure?programs ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • ??
  • public?enum?ExposurePrograms ??
  • { ??
  • Manual?=?1, ??
  • Normal?=?2, ??
  • AperturePriority?=?3, ??
  • ShutterPriority?=?4, ??
  • Creative?=?5, ??
  • Action?=?6, ??
  • Portrait?=?7, ??
  • Landscape?=?8, ??
  • } ??
  • ??
  • ??
  • //? ??
  • //?Exposure?metering?modes ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • ??
  • public?enum?ExposureMeteringModes ??
  • { ??
  • Unknown?=?0, ??
  • Average?=?1, ??
  • CenterWeightedAverage?=?2, ??
  • Spot?=?3, ??
  • MultiSpot?=?4, ??
  • MultiSegment?=?5, ??
  • Partial?=?6, ??
  • Other?=?255 ??
  • } ??
  • ??
  • ??
  • //? ??
  • //?Flash?activity?modes ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • ??
  • public?enum?FlashModes ??
  • { ??
  • NotFired?=?0, ??
  • Fired?=?1, ??
  • FiredButNoStrobeReturned?=?5, ??
  • FiredAndStrobeReturned?=?7, ??
  • } ??
  • ??
  • ??
  • //? ??
  • //?Possible?light?sources?(white?balance) ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • ??
  • public?enum?LightSources ??
  • { ??
  • Unknown?=?0, ??
  • Daylight?=?1, ??
  • Fluorescent?=?2, ??
  • Tungsten?=?3, ??
  • Flash?=?10, ??
  • StandardLightA?=?17, ??
  • StandardLightB?=?18, ??
  • StandardLightC?=?19, ??
  • D55?=?20, ??
  • D65?=?21, ??
  • D75?=?22, ??
  • Other?=?255 ??
  • } ??
  • ??
  • ??
  • //? ??
  • //?EXIF?data?types ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?12.6.2004?Created ??
  • //? ??
  • public?enum?ExifDataTypes?:?short??
  • { ??
  • UnsignedByte?=?1, ??
  • AsciiString?=?2, ??
  • UnsignedShort?=?3, ??
  • UnsignedLong?=?4, ??
  • UnsignedRational?=?5, ??
  • SignedByte?=?6, ??
  • Undefined?=?7, ??
  • SignedShort?=?8, ??
  • SignedLong?=?9, ??
  • SignedRational?=?10, ??
  • SingleFloat?=?11, ??
  • DoubleFloat?=?12 ??
  • } ??
  • ??
  • ??
  • //? ??
  • //?Represents?rational?which?is?type?of?some?Exif?properties ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?struct?Rational ??
  • { ??
  • public?Int32?Numerator; ??
  • public?Int32?Denominator; ??
  • ??
  • ??
  • //? ??
  • //?Converts?rational?to?string?representation ??
  • //? ??
  • //?Optional,?default?"/".?String?to?be?used?as?delimiter?of?components. ??
  • //?String?representation?of?the?rational. ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • ??
  • public?override?string?ToString() ??
  • { ??
  • return?ToString("/"); ??
  • } ??
  • ??
  • public?string?ToString(string?Delimiter) ??
  • { ??
  • return?Numerator?+?"/"?+?Denominator; ??
  • } ??
  • ??
  • //? ??
  • //?Converts?rational?to?double?precision?real?number ??
  • //? ??
  • //?The?rational?as?double?precision?real?number. ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • ??
  • public?double?ToDouble() ??
  • { ??
  • return?(double)Numerator?/?Denominator; ??
  • } ??
  • } ?
  • ?
  • #endregion ??
  • ??
  • //? ??
  • //?Initializes?new?instance?of?this?class. ??
  • //? ??
  • //?Bitmap?to?read?exif?information?from ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?ExifManager(System.Drawing.Bitmap?Bitmap) ??
  • { ??
  • if?(Bitmap?==?null) ??
  • throw?new?ArgumentNullException("Bitmap"); ??
  • this._Image?=?Bitmap; ??
  • } ??
  • ??
  • //? ??
  • //?Initializes?new?instance?of?this?class. ??
  • //? ??
  • //?Name?of?file?to?be?loaded ??
  • //? ??
  • //? ??
  • //?[altair]?13.06.2004?Created ??
  • //? ??
  • public?ExifManager(string?FileName) ??
  • { ??
  • this._Image?=?(System.Drawing.Bitmap)System.Drawing.Bitmap.FromFile(FileName); ??
  • } ??
  • ??
  • //? ??
  • //?Get?or?set?encoding?used?for?string?metadata ??
  • //? ??
  • //?Encoding?used?for?string?metadata ??
  • //?Default?encoding?is?UTF-8 ??
  • //? ??
  • //?[altair]?11.07.2004?Created ??
  • //?[altair]?05.09.2005?Changed?from?shared?to?instance?member ??
  • //? ??
  • public?System.Text.Encoding?Encoding ??
  • { ??
  • get??
  • { ??
  • return?this._Encoding; ??
  • } ??
  • set??
  • { ??
  • if?(value?==?null) ??
  • throw?new?ArgumentNullException(); ??
  • this._Encoding?=?value; ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?Returns?copy?of?bitmap?this?instance?is?working?on ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?13.06.2004?Created ??
  • //? ??
  • public?System.Drawing.Bitmap?GetBitmap() ??
  • { ??
  • return?(System.Drawing.Bitmap)this._Image.Clone(); ??
  • } ??
  • ??
  • //? ??
  • //?Returns?all?available?data?in?formatted?string?form ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?override?string?ToString() ??
  • { ??
  • System.Text.StringBuilder?SB?=?new?StringBuilder(); ??
  • ??
  • SB.Append("照片信息:"); ??
  • SB.Append("\n\t尺寸:?"?+?this.Width?+?"?x?"?+?this.Height?+?"?px"); ??
  • SB.Append("\n\t分辨率:?"?+?this.ResolutionX?+?"?x?"?+?this.ResolutionY?+?"?dpi"); ??
  • SB.Append("\n\t方向:?"?+?Enum.GetName(typeof(Orientations),?this.Orientation)); ??
  • SB.Append("\n\t標題:?"?+?this.Title); ??
  • SB.Append("\n\t描述:?"?+?this.Description); ??
  • SB.Append("\n\t作者:?"?+?this.Artist); ??
  • SB.Append("\n\t版權信息:?"?+?this.Copyright); ??
  • SB.Append("\n相機信息:"); ??
  • SB.Append("\n\t制造商:?"?+?this.EquipmentMaker); ??
  • SB.Append("\n\t型號:?"?+?this.EquipmentModel); ??
  • SB.Append("\n\t編輯軟件:?"?+?this.Software); ??
  • SB.Append("\n時間信息:"); ??
  • SB.Append("\n\t最后編輯時間:?"?+?this.DateTimeLastModified.ToString()); ??
  • SB.Append("\n\t原始拍照時間:?"?+?this.DateTimeOriginal.ToString()); ??
  • SB.Append("\n\t數字化時間:?"?+?this.DateTimeDigitized.ToString()); ??
  • SB.Append("\n拍攝信息:"); ??
  • SB.Append("\n\t曝光時間:?"?+?this.ExposureTime.ToString("N4")?+?"?s"); ??
  • SB.Append("\n\t曝光模式:?"?+?Enum.GetName(typeof(ExposurePrograms),?this.ExposureProgram)); ??
  • SB.Append("\n\t測光模式:?"?+?Enum.GetName(typeof(ExposureMeteringModes),?this.ExposureMeteringMode)); ??
  • SB.Append("\n\t光圈值:?F"?+?this.Aperture.ToString("N1")); ??
  • SB.Append("\n\tISO感光度:?"?+?this.ISO); ??
  • SB.Append("\n\t拍攝距離:?"?+?this.SubjectDistance.ToString("N2")?+?"?m"); ??
  • SB.Append("\n\t焦距:?"?+?this.FocalLength?+?"?mm"); ??
  • SB.Append("\n\t閃光燈:?"?+?Enum.GetName(typeof(FlashModes),?this.FlashMode)); ??
  • SB.Append("\n\t白平衡(WB):?"?+?Enum.GetName(typeof(LightSources),?this.LightSource)); ??
  • //SB.Replace("\n",?vbCrLf); ??
  • //SB.Replace("\t",?vbTab); ??
  • return?SB.ToString(); ??
  • } ?
  • ?
  • #region?Nicely?formatted?well-known?properties ??
  • ??
  • //? ??
  • //?Brand?of?equipment?(EXIF?EquipMake) ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?string?EquipmentMaker ??
  • { ??
  • get??
  • { ??
  • return?this.GetPropertyString((int)TagNames.EquipMake); ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?Model?of?equipment?(EXIF?EquipModel) ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?string?EquipmentModel ??
  • { ??
  • get??
  • { ??
  • return?this.GetPropertyString((int)TagNames.EquipModel); ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?Software?used?for?processing?(EXIF?Software) ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?string?Software ??
  • { ??
  • get??
  • { ??
  • return?this.GetPropertyString((int)TagNames.SoftwareUsed); ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?Orientation?of?image?(position?of?row?0,?column?0)?(EXIF?Orientation) ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?Orientations?Orientation ??
  • { ??
  • get??
  • { ??
  • Int32?X?=?this.GetPropertyInt16((int)TagNames.Orientation); ??
  • ??
  • if?(!Enum.IsDefined(typeof(Orientations),?X)) ??
  • return?Orientations.TopLeft; ??
  • else??
  • return?(Orientations)Enum.Parse(typeof(Orientations),?Enum.GetName(typeof(Orientations),?X)); ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?Time?when?image?was?last?modified?(EXIF?DateTime). ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?DateTime?DateTimeLastModified ??
  • { ??
  • get??
  • { ??
  • try??
  • { ??
  • return?DateTime.ParseExact(this.GetPropertyString((int)TagNames.DateTime),?@"yyyy\:MM\:dd?HH\:mm\:ss",?null); ??
  • } ??
  • catch??
  • { ??
  • return?DateTime.MinValue; ??
  • } ??
  • } ??
  • set??
  • { ??
  • try??
  • { ??
  • this.SetPropertyString((int)TagNames.DateTime,?value.ToString(@"yyyy\:MM\:dd?HH\:mm\:ss")); ??
  • } ??
  • catch??
  • {?} ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?Time?when?image?was?taken?(EXIF?DateTimeOriginal). ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?DateTime?DateTimeOriginal ??
  • { ??
  • get??
  • { ??
  • try??
  • { ??
  • return?DateTime.ParseExact(this.GetPropertyString((int)TagNames.ExifDTOrig),?@"yyyy\:MM\:dd?HH\:mm\:ss",?null); ??
  • } ??
  • catch??
  • { ??
  • return?DateTime.MinValue; ??
  • } ??
  • } ??
  • set??
  • { ??
  • try??
  • { ??
  • this.SetPropertyString((int)TagNames.ExifDTOrig,?value.ToString(@"yyyy\:MM\:dd?HH\:mm\:ss")); ??
  • } ??
  • catch??
  • {?} ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?Time?when?image?was?digitized?(EXIF?DateTimeDigitized). ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?DateTime?DateTimeDigitized ??
  • { ??
  • get??
  • { ??
  • try??
  • { ??
  • return?DateTime.ParseExact(this.GetPropertyString((int)TagNames.ExifDTDigitized),?@"yyyy\:MM\:dd?HH\:mm\:ss",?null); ??
  • } ??
  • catch??
  • { ??
  • return?DateTime.MinValue; ??
  • } ??
  • } ??
  • set??
  • { ??
  • try??
  • { ??
  • this.SetPropertyString((int)TagNames.ExifDTDigitized,?value.ToString(@"yyyy\:MM\:dd?HH\:mm\:ss")); ??
  • } ??
  • catch??
  • {?} ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?Image?width ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //?[altair]?04.09.2005?Changed?output?to?Int32,?load?from?image?instead?of?EXIF ??
  • //? ??
  • public?Int32?Width ??
  • { ??
  • get?{?return?this._Image.Width;?} ??
  • } ??
  • ??
  • //? ??
  • //?Image?height ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //?[altair]?04.09.2005?Changed?output?to?Int32,?load?from?image?instead?of?EXIF ??
  • //? ??
  • public?Int32?Height ??
  • { ??
  • get?{?return?this._Image.Height;?} ??
  • } ??
  • ??
  • //? ??
  • //?X?resolution?in?dpi?(EXIF?XResolution/ResolutionUnit) ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?double?ResolutionX ??
  • { ??
  • get??
  • { ??
  • double?R?=?this.GetPropertyRational((int)TagNames.XResolution).ToDouble(); ??
  • ??
  • if?(this.GetPropertyInt16((int)TagNames.ResolutionUnit)?==?3) ??
  • { ??
  • //?--?resolution?is?in?points/cm ??
  • return?R?*?2.54; ??
  • } ??
  • else??
  • { ??
  • //?--?resolution?is?in?points/inch ??
  • return?R; ??
  • } ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?Y?resolution?in?dpi?(EXIF?YResolution/ResolutionUnit) ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?double?ResolutionY ??
  • { ??
  • get??
  • { ??
  • double?R?=?this.GetPropertyRational((int)TagNames.YResolution).ToDouble(); ??
  • ??
  • if?(this.GetPropertyInt16((int)TagNames.ResolutionUnit)?==?3) ??
  • { ??
  • //?--?resolution?is?in?points/cm ??
  • return?R?*?2.54; ??
  • } ??
  • else??
  • { ??
  • //?--?resolution?is?in?points/inch ??
  • return?R; ??
  • } ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?Image?title?(EXIF?ImageTitle) ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?string?Title ??
  • { ??
  • get??
  • { ??
  • return?this.GetPropertyString((int)TagNames.ImageTitle); ??
  • } ??
  • set??
  • { ??
  • try??
  • { ??
  • this.SetPropertyString((int)TagNames.ImageTitle,?value); ??
  • } ??
  • catch?{?} ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?User?comment?(EXIF?UserComment) ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?13.06.2004?Created ??
  • //? ??
  • public?string?UserComment ??
  • { ??
  • get??
  • { ??
  • return?this.GetPropertyString((int)TagNames.ExifUserComment); ??
  • } ??
  • set??
  • { ??
  • try??
  • { ??
  • this.SetPropertyString((int)TagNames.ExifUserComment,?value); ??
  • } ??
  • catch?{?} ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?Artist?name?(EXIF?Artist) ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?13.06.2004?Created ??
  • //? ??
  • public?string?Artist ??
  • { ??
  • get??
  • { ??
  • return?this.GetPropertyString((int)TagNames.Artist); ??
  • } ??
  • set??
  • { ??
  • try??
  • { ??
  • this.SetPropertyString((int)TagNames.Artist,?value); ??
  • } ??
  • catch?{?} ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?Image?description?(EXIF?ImageDescription) ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?string?Description ??
  • { ??
  • get??
  • { ??
  • return?this.GetPropertyString((int)TagNames.ImageDescription); ??
  • } ??
  • set??
  • { ??
  • try??
  • { ??
  • this.SetPropertyString((int)TagNames.ImageDescription,?value); ??
  • } ??
  • catch?{?} ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?Image?copyright?(EXIF?Copyright) ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?string?Copyright ??
  • { ??
  • get??
  • { ??
  • return?this.GetPropertyString((int)TagNames.Copyright); ??
  • } ??
  • set??
  • { ??
  • try??
  • { ??
  • this.SetPropertyString((int)TagNames.Copyright,?value); ??
  • } ??
  • catch?{?} ??
  • } ??
  • } ??
  • ??
  • ??
  • //? ??
  • //?Exposure?time?in?seconds?(EXIF?ExifExposureTime/ExifShutterSpeed) ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?double?ExposureTimeAbs ??
  • { ??
  • get??
  • { ??
  • if?(this.IsPropertyDefined((int)TagNames.ExifExposureTime)) ??
  • //?--?Exposure?time?is?explicitly?specified ??
  • return?this.GetPropertyRational((int)TagNames.ExifExposureTime).ToDouble(); ??
  • else??
  • if?(this.IsPropertyDefined((int)TagNames.ExifShutterSpeed)) ??
  • //'--?Compute?exposure?time?from?shutter?spee? ??
  • return?(1?/?Math.Pow(2,?this.GetPropertyRational((int)TagNames.ExifShutterSpeed).ToDouble())); ??
  • else??
  • //?--?Can't?figure?out? ??
  • return?0; ??
  • } ??
  • } ??
  • ??
  • public?Rational?ExposureTime ??
  • { ??
  • get??
  • { ??
  • if?(this.IsPropertyDefined((int)TagNames.ExifExposureTime)) ??
  • //?--?Exposure?time?is?explicitly?specified ??
  • return?this.GetPropertyRational((int)TagNames.ExifExposureTime); ??
  • else??
  • return?new?Rational(); ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?Aperture?value?as?F?number?(EXIF?ExifFNumber/ExifApertureValue) ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?double?Aperture ??
  • { ??
  • get??
  • { ??
  • if?(this.IsPropertyDefined((int)TagNames.ExifFNumber)) ??
  • return?this.GetPropertyRational((int)TagNames.ExifFNumber).ToDouble(); ??
  • else??
  • if?(this.IsPropertyDefined((int)TagNames.ExifAperture)) ??
  • return?Math.Pow(System.Math.Sqrt(2),?this.GetPropertyRational((int)TagNames.ExifAperture).ToDouble()); ??
  • else??
  • return?0; ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?Exposure?program?used?(EXIF?ExifExposureProg) ??
  • //? ??
  • //? ??
  • //?If?not?specified,?returns?Normal?(2) ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?ExposurePrograms?ExposureProgram ??
  • { ??
  • get??
  • { ??
  • Int32?X?=?this.GetPropertyInt16((int)TagNames.ExifExposureProg); ??
  • ??
  • if?(Enum.IsDefined(typeof(ExposurePrograms),?X)) ??
  • return?(ExposurePrograms)Enum.Parse(typeof(ExposurePrograms),?Enum.GetName(typeof(ExposurePrograms),?X)); ??
  • else??
  • return?ExposurePrograms.Normal; ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?ISO?sensitivity ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?Int16?ISO ??
  • { ??
  • get?{?return?this.GetPropertyInt16((int)TagNames.ExifISOSpeed);?} ??
  • } ??
  • ??
  • //? ??
  • //?Subject?distance?in?meters?(EXIF?SubjectDistance) ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?double?SubjectDistance ??
  • { ??
  • get?{?return?this.GetPropertyRational((int)TagNames.ExifSubjectDist).ToDouble();?} ??
  • } ??
  • ??
  • //? ??
  • //?Exposure?method?metering?mode?used?(EXIF?MeteringMode) ??
  • //? ??
  • //? ??
  • //?If?not?specified,?returns?Unknown?(0) ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?ExposureMeteringModes?ExposureMeteringMode ??
  • { ??
  • get??
  • { ??
  • Int32?X?=?this.GetPropertyInt16((int)TagNames.ExifMeteringMode); ??
  • ??
  • if?(Enum.IsDefined(typeof(ExposureMeteringModes),?X)) ??
  • return?(ExposureMeteringModes)Enum.Parse(typeof(ExposureMeteringModes),?Enum.GetName(typeof(ExposureMeteringModes),?X)); ??
  • else??
  • return?ExposureMeteringModes.Unknown; ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?Focal?length?of?lenses?in?mm?(EXIF?FocalLength) ??
  • //? ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?double?FocalLength ??
  • { ??
  • get?{?return?this.GetPropertyRational((int)TagNames.ExifFocalLength).ToDouble();?} ??
  • } ??
  • ??
  • //? ??
  • //?Flash?mode?(EXIF?Flash) ??
  • //? ??
  • //? ??
  • //?If?not?present,?value?NotFired?(0)?is?returned ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?FlashModes?FlashMode ??
  • { ??
  • get??
  • { ??
  • Int32?X?=?this.GetPropertyInt16((int)TagNames.ExifFlash); ??
  • ??
  • if?(Enum.IsDefined(typeof(FlashModes),?X)) ??
  • return?(FlashModes)Enum.Parse(typeof(FlashModes),?Enum.GetName(typeof(FlashModes),?X)); ??
  • else??
  • return?FlashModes.NotFired; ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?Light?source?/?white?balance?(EXIF?LightSource) ??
  • //? ??
  • //? ??
  • //?If?not?specified,?returns?Unknown?(0). ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?LightSources?LightSource ??
  • { ??
  • get??
  • { ??
  • Int32?X?=?this.GetPropertyInt16((int)TagNames.ExifLightSource); ??
  • ??
  • if?(Enum.IsDefined(typeof(LightSources),?X)) ??
  • return?(LightSources)Enum.Parse(typeof(LightSources),?Enum.GetName(typeof(LightSources),?X)); ??
  • else??
  • return?LightSources.Unknown; ??
  • } ??
  • } ?
  • ?
  • #endregion ?
  • ?
  • #region?Support?methods?for?working?with?EXIF?properties ??
  • ??
  • //? ??
  • //?Checks?if?current?image?has?specified?certain?property ??
  • //? ??
  • //? ??
  • //?True?if?image?has?specified?property,?False?otherwise. ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?bool?IsPropertyDefined(Int32?PID) ??
  • { ??
  • return?(Array.IndexOf(this._Image.PropertyIdList,?PID)?>?-1); ??
  • } ??
  • ??
  • //? ??
  • //?Gets?specified?Int32?property ??
  • //? ??
  • //?Property?ID ??
  • //?Optional,?default?0.?Default?value?returned?if?property?is?not?present. ??
  • //?Value?of?property?or?DefaultValue?if?property?is?not?present. ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?Int32?GetPropertyInt32(Int32?PID) ??
  • { ??
  • return?GetPropertyInt32(PID,?0); ??
  • } ??
  • ??
  • public?Int32?GetPropertyInt32(Int32?PID,?Int32?DefaultValue) ??
  • { ??
  • if?(IsPropertyDefined(PID)) ??
  • return?GetInt32(this._Image.GetPropertyItem(PID).Value); ??
  • else??
  • return?DefaultValue; ??
  • } ??
  • ??
  • //? ??
  • //?Gets?specified?Int16?property ??
  • //? ??
  • //?Property?ID ??
  • //?Optional,?default?0.?Default?value?returned?if?property?is?not?present. ??
  • //?Value?of?property?or?DefaultValue?if?property?is?not?present. ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?Int16?GetPropertyInt16(Int32?PID) ??
  • { ??
  • return?GetPropertyInt16(PID,?0); ??
  • } ??
  • ??
  • public?Int16?GetPropertyInt16(Int32?PID,?Int16?DefaultValue) ??
  • { ??
  • if?(IsPropertyDefined(PID)) ??
  • return?GetInt16(this._Image.GetPropertyItem(PID).Value); ??
  • else??
  • return?DefaultValue; ??
  • } ??
  • ??
  • //? ??
  • //?Gets?specified?string?property ??
  • //? ??
  • //?Property?ID ??
  • //?Optional,?default?String.Empty.?Default?value?returned?if?property?is?not?present. ??
  • //? ??
  • //?Value?of?property?or?DefaultValue?if?property?is?not?present. ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?string?GetPropertyString(Int32?PID) ??
  • { ??
  • return?GetPropertyString(PID,?""); ??
  • } ??
  • ??
  • public?string?GetPropertyString(Int32?PID,?string?DefaultValue) ??
  • { ??
  • if?(IsPropertyDefined(PID)) ??
  • return?GetString(this._Image.GetPropertyItem(PID).Value); ??
  • else??
  • return?DefaultValue; ??
  • } ??
  • ??
  • //? ??
  • //?Gets?specified?property?in?raw?form ??
  • //? ??
  • //?Property?ID ??
  • //?Optional,?default?Nothing.?Default?value?returned?if?property?is?not?present. ??
  • //? ??
  • //?Is?recommended?to?use?typed?methods?(like?etc.)?instead,?when?possible. ??
  • //? ??
  • //?[altair]?05.09.2005?Created ??
  • //? ??
  • public?byte[]?GetProperty(Int32?PID,?byte[]?DefaultValue) ??
  • { ??
  • if?(IsPropertyDefined(PID)) ??
  • return?this._Image.GetPropertyItem(PID).Value; ??
  • else??
  • return?DefaultValue; ??
  • } ??
  • ??
  • public?byte[]?GetProperty(Int32?PID) ??
  • { ??
  • return?GetProperty(PID,?null); ??
  • } ??
  • ??
  • //? ??
  • //?Gets?specified?rational?property ??
  • //? ??
  • //?Property?ID ??
  • //? ??
  • //?Value?of?property?or?0/1?if?not?present. ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?Rational?GetPropertyRational(Int32?PID) ??
  • { ??
  • if?(IsPropertyDefined(PID)) ??
  • return?GetRational(this._Image.GetPropertyItem(PID).Value); ??
  • else??
  • { ??
  • Rational?R; ??
  • R.Numerator?=?0; ??
  • R.Denominator?=?1; ??
  • return?R; ??
  • } ??
  • } ??
  • ??
  • //? ??
  • //?Sets?specified?string?property ??
  • //? ??
  • //?Property?ID ??
  • //?Value?to?be?set ??
  • //? ??
  • //? ??
  • //?[altair]?12.6.2004?Created ??
  • //? ??
  • public?void?SetPropertyString(Int32?PID,?string?Value) ??
  • { ??
  • byte[]?Data?=?this._Encoding.GetBytes(Value?+?'\0'); ??
  • SetProperty(PID,?Data,?ExifDataTypes.AsciiString); ??
  • } ??
  • ??
  • //? ??
  • //?Sets?specified?Int16?property ??
  • //? ??
  • //?Property?ID ??
  • //?Value?to?be?set ??
  • //? ??
  • //? ??
  • //?[altair]?12.6.2004?Created ??
  • //? ??
  • public?void?SetPropertyInt16(Int32?PID,?Int16?Value) ??
  • { ??
  • byte[]?Data?=?new?byte[2]; ??
  • Data[0]?=?(byte)(Value?&?0xFF); ??
  • Data[1]?=?(byte)((Value?&?0xFF00)?>>?8); ??
  • SetProperty(PID,?Data,?ExifDataTypes.SignedShort); ??
  • } ??
  • ??
  • //? ??
  • //?Sets?specified?Int32?property ??
  • //? ??
  • //?Property?ID ??
  • //?Value?to?be?set ??
  • //? ??
  • //? ??
  • //?[altair]?13.06.2004?Created ??
  • //? ??
  • public?void?SetPropertyInt32(Int32?PID,?Int32?Value) ??
  • { ??
  • byte[]?Data?=?new?byte[4]; ??
  • for?(int?I?=?0;?I?<?4;?I++) ??
  • { ??
  • Data[I]?=?(byte)(Value?&?0xFF); ??
  • Value?>>=?8; ??
  • } ??
  • SetProperty(PID,?Data,?ExifDataTypes.SignedLong); ??
  • } ??
  • ??
  • //? ??
  • //?Sets?specified?property?in?raw?form ??
  • //? ??
  • //?Property?ID ??
  • //?Raw?data ??
  • //?EXIF?data?type ??
  • //?Is?recommended?to?use?typed?methods?(like?etc.)?instead,?when?possible. ??
  • //? ??
  • //?[altair]?12.6.2004?Created ??
  • //? ??
  • public?void?SetProperty(Int32?PID,?byte[]?Data,?ExifDataTypes?Type) ??
  • { ??
  • System.Drawing.Imaging.PropertyItem?P?=?this._Image.PropertyItems[0]; ??
  • P.Id?=?PID; ??
  • P.Value?=?Data; ??
  • P.Type?=?(Int16)Type; ??
  • P.Len?=?Data.Length; ??
  • this._Image.SetPropertyItem(P); ??
  • } ??
  • ??
  • //? ??
  • //?Reads?Int32?from?EXIF?bytearray. ??
  • //? ??
  • //?EXIF?bytearray?to?process ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //?[altair]?05.09.2005?Changed?from?public?shared?to?private?instance?method ??
  • //? ??
  • private?Int32?GetInt32(byte[]?B) ??
  • { ??
  • if?(B.Length?<?4) ??
  • throw?new?ArgumentException("Data?too?short?(4?bytes?expected)",?"B"); ??
  • ??
  • return?B[3]?<<?24?|?B[2]?<<?16?|?B[1]?<<?8?|?B[0]; ??
  • } ??
  • ??
  • //? ??
  • //?Reads?Int16?from?EXIF?bytearray. ??
  • //? ??
  • //?EXIF?bytearray?to?process ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //?[altair]?05.09.2005?Changed?from?public?shared?to?private?instance?method ??
  • //? ??
  • private?Int16?GetInt16(byte[]?B) ??
  • { ??
  • if?(B.Length?<?2) ??
  • throw?new?ArgumentException("Data?too?short?(2?bytes?expected)",?"B"); ??
  • ??
  • return?(short)(B[1]?<<?8?|?B[0]); ??
  • } ??
  • ??
  • //? ??
  • //?Reads?string?from?EXIF?bytearray. ??
  • //? ??
  • //?EXIF?bytearray?to?process ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //?[altair]?05.09.2005?Changed?from?public?shared?to?private?instance?method ??
  • //? ??
  • private?string?GetString(byte[]?B) ??
  • { ??
  • string?R?=?this._Encoding.GetString(B); ??
  • if?(R.EndsWith("\0")) ??
  • R?=?R.Substring(0,?R.Length?-?1); ??
  • return?R; ??
  • } ??
  • ??
  • //? ??
  • //?Reads?rational?from?EXIF?bytearray. ??
  • //? ??
  • //?EXIF?bytearray?to?process ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //?[altair]?05.09.2005?Changed?from?public?shared?to?private?instance?method ??
  • //? ??
  • private?Rational?GetRational(byte[]?B) ??
  • { ??
  • Rational?R?=?new?Rational(); ??
  • byte[]?N?=?new?byte[4]; ??
  • byte[]?D?=?new?byte[4]; ??
  • Array.Copy(B,?0,?N,?0,?4); ??
  • Array.Copy(B,?4,?D,?0,?4); ??
  • R.Denominator?=?this.GetInt32(D); ??
  • R.Numerator?=?this.GetInt32(N); ??
  • return?R; ??
  • } ??
  • ??
  • public?void?Save(string?fileName){ ??
  • ????this._Image.Save(fileName); ??
  • } ?
  • #endregion ?
  • ?
  • #region?"?IDisposable?implementation?" ??
  • ??
  • //? ??
  • //?Disposes?unmanaged?resources?of?this?class ??
  • //? ??
  • //? ??
  • //? ??
  • //?[altair]?10.09.2003?Created ??
  • //? ??
  • public?void?Dispose() ??
  • { ??
  • this._Image.Dispose(); ??
  • } ?
  • ?
  • #endregion ??
  • ??
  • } ??
  • }??
  • using System; using System.Collections.Generic; using System.Text;namespace ExifShow { // // Utility class for working with EXIF data in images. Provides abstraction // for most common data and generic utilities for work with all other. // // // Copyright (c) Michal A. Valá?ek - Altair Communications, 2003-2005 // Copmany: http://software.altaircom.net, E-mail: support@altaircom.net // Private: http://www.rider.cz, E-mail: rider@rider.cz // This is free software licensed under GNU Lesser General Public License // // // [altair] 10.09.2003 Created // [altair] 12.06.2004 Added capability to write EXIF data // [altair] 11.07.2004 Added option to change encoding // [altair] 04.09.2005 Changed source of Width and Height properties from EXIF to image // [altair] 05.09.2005 Code clean-up and minor changes // [marco.ridoni@virgilio.it] 02-11-2006 C# translation // public class ExifManager : IDisposable {private System.Drawing.Bitmap _Image; private System.Text.Encoding _Encoding = System.Text.Encoding.UTF8;#region Type declarations// // Contains possible values of EXIF tag names (ID) // // See GdiPlusImaging.h // // [altair] 10.09.2003 Created // public enum TagNames : int { ExifIFD = 0x8769, GpsIFD = 0x8825, NewSubfileType = 0xFE, SubfileType = 0xFF, ImageWidth = 0x100, ImageHeight = 0x101, BitsPerSample = 0x102, Compression = 0x103, PhotometricInterp = 0x106, ThreshHolding = 0x107, CellWidth = 0x108, CellHeight = 0x109, FillOrder = 0x10A, DocumentName = 0x10D, ImageDescription = 0x10E, EquipMake = 0x10F, EquipModel = 0x110, StripOffsets = 0x111, Orientation = 0x112, SamplesPerPixel = 0x115, RowsPerStrip = 0x116, StripBytesCount = 0x117, MinSampleValue = 0x118, MaxSampleValue = 0x119, XResolution = 0x11A, YResolution = 0x11B, PlanarConfig = 0x11C, PageName = 0x11D, XPosition = 0x11E, YPosition = 0x11F, FreeOffset = 0x120, FreeByteCounts = 0x121, GrayResponseUnit = 0x122, GrayResponseCurve = 0x123, T4Option = 0x124, T6Option = 0x125, ResolutionUnit = 0x128, PageNumber = 0x129, TransferFuncition = 0x12D, SoftwareUsed = 0x131, DateTime = 0x132, Artist = 0x13B, HostComputer = 0x13C, Predictor = 0x13D, WhitePoint = 0x13E, PrimaryChromaticities = 0x13F, ColorMap = 0x140, HalftoneHints = 0x141, TileWidth = 0x142, TileLength = 0x143, TileOffset = 0x144, TileByteCounts = 0x145, InkSet = 0x14C, InkNames = 0x14D, NumberOfInks = 0x14E, DotRange = 0x150, TargetPrinter = 0x151, ExtraSamples = 0x152, SampleFormat = 0x153, SMinSampleValue = 0x154, SMaxSampleValue = 0x155, TransferRange = 0x156, JPEGProc = 0x200, JPEGInterFormat = 0x201, JPEGInterLength = 0x202, JPEGRestartInterval = 0x203, JPEGLosslessPredictors = 0x205, JPEGPointTransforms = 0x206, JPEGQTables = 0x207, JPEGDCTables = 0x208, JPEGACTables = 0x209, YCbCrCoefficients = 0x211, YCbCrSubsampling = 0x212, YCbCrPositioning = 0x213, REFBlackWhite = 0x214, ICCProfile = 0x8773, Gamma = 0x301, ICCProfileDescriptor = 0x302, SRGBRenderingIntent = 0x303, ImageTitle = 0x320, Copyright = 0x8298, ResolutionXUnit = 0x5001, ResolutionYUnit = 0x5002, ResolutionXLengthUnit = 0x5003, ResolutionYLengthUnit = 0x5004, PrintFlags = 0x5005, PrintFlagsVersion = 0x5006, PrintFlagsCrop = 0x5007, PrintFlagsBleedWidth = 0x5008, PrintFlagsBleedWidthScale = 0x5009, HalftoneLPI = 0x500A, HalftoneLPIUnit = 0x500B, HalftoneDegree = 0x500C, HalftoneShape = 0x500D, HalftoneMisc = 0x500E, HalftoneScreen = 0x500F, JPEGQuality = 0x5010, GridSize = 0x5011, ThumbnailFormat = 0x5012, ThumbnailWidth = 0x5013, ThumbnailHeight = 0x5014, ThumbnailColorDepth = 0x5015, ThumbnailPlanes = 0x5016, ThumbnailRawBytes = 0x5017, ThumbnailSize = 0x5018, ThumbnailCompressedSize = 0x5019, ColorTransferFunction = 0x501A, ThumbnailData = 0x501B, ThumbnailImageWidth = 0x5020, ThumbnailImageHeight = 0x502, ThumbnailBitsPerSample = 0x5022, ThumbnailCompression = 0x5023, ThumbnailPhotometricInterp = 0x5024, ThumbnailImageDescription = 0x5025, ThumbnailEquipMake = 0x5026, ThumbnailEquipModel = 0x5027, ThumbnailStripOffsets = 0x5028, ThumbnailOrientation = 0x5029, ThumbnailSamplesPerPixel = 0x502A, ThumbnailRowsPerStrip = 0x502B, ThumbnailStripBytesCount = 0x502C, ThumbnailResolutionX = 0x502D, ThumbnailResolutionY = 0x502E, ThumbnailPlanarConfig = 0x502F, ThumbnailResolutionUnit = 0x5030, ThumbnailTransferFunction = 0x5031, ThumbnailSoftwareUsed = 0x5032, ThumbnailDateTime = 0x5033, ThumbnailArtist = 0x5034, ThumbnailWhitePoint = 0x5035, ThumbnailPrimaryChromaticities = 0x5036, ThumbnailYCbCrCoefficients = 0x5037, ThumbnailYCbCrSubsampling = 0x5038, ThumbnailYCbCrPositioning = 0x5039, ThumbnailRefBlackWhite = 0x503A, ThumbnailCopyRight = 0x503B, LuminanceTable = 0x5090, ChrominanceTable = 0x5091, FrameDelay = 0x5100, LoopCount = 0x5101, PixelUnit = 0x5110, PixelPerUnitX = 0x5111, PixelPerUnitY = 0x5112, PaletteHistogram = 0x5113, ExifExposureTime = 0x829A, ExifFNumber = 0x829D, ExifExposureProg = 0x8822, ExifSpectralSense = 0x8824, ExifISOSpeed = 0x8827, ExifOECF = 0x8828, ExifVer = 0x9000, ExifDTOrig = 0x9003, ExifDTDigitized = 0x9004, ExifCompConfig = 0x9101, ExifCompBPP = 0x9102, ExifShutterSpeed = 0x9201, ExifAperture = 0x9202, ExifBrightness = 0x9203, ExifExposureBias = 0x9204, ExifMaxAperture = 0x9205, ExifSubjectDist = 0x9206, ExifMeteringMode = 0x9207, ExifLightSource = 0x9208, ExifFlash = 0x9209, ExifFocalLength = 0x920A, ExifMakerNote = 0x927C, ExifUserComment = 0x9286, ExifDTSubsec = 0x9290, ExifDTOrigSS = 0x9291, ExifDTDigSS = 0x9292, ExifFPXVer = 0xA000, ExifColorSpace = 0xA001, ExifPixXDim = 0xA002, ExifPixYDim = 0xA003, ExifRelatedWav = 0xA004, ExifInterop = 0xA005, ExifFlashEnergy = 0xA20B, ExifSpatialFR = 0xA20C, ExifFocalXRes = 0xA20E, ExifFocalYRes = 0xA20F, ExifFocalResUnit = 0xA210, ExifSubjectLoc = 0xA214, ExifExposureIndex = 0xA215, ExifSensingMethod = 0xA217, ExifFileSource = 0xA300, ExifSceneType = 0xA301, ExifCfaPattern = 0xA302, GpsVer = 0x0, GpsLatitudeRef = 0x1, GpsLatitude = 0x2, GpsLongitudeRef = 0x3, GpsLongitude = 0x4, GpsAltitudeRef = 0x5, GpsAltitude = 0x6, GpsGpsTime = 0x7, GpsGpsSatellites = 0x8, GpsGpsStatus = 0x9, GpsGpsMeasureMode = 0xA, GpsGpsDop = 0xB, GpsSpeedRef = 0xC, GpsSpeed = 0xD, GpsTrackRef = 0xE, GpsTrack = 0xF, GpsImgDirRef = 0x10, GpsImgDir = 0x11, GpsMapDatum = 0x12, GpsDestLatRef = 0x13, GpsDestLat = 0x14, GpsDestLongRef = 0x15, GpsDestLong = 0x16, GpsDestBearRef = 0x17, GpsDestBear = 0x18, GpsDestDistRef = 0x19, GpsDestDist = 0x1A }// // Real position of 0th row and column of picture // // // // [altair] 10.09.2003 Created // public enum Orientations { TopLeft = 1, TopRight = 2, BottomRight = 3, BottomLeft = 4, LeftTop = 5, RightTop = 6, RightBottom = 7, LftBottom = 8 }// // Exposure programs // // // // [altair] 10.09.2003 Created // public enum ExposurePrograms { Manual = 1, Normal = 2, AperturePriority = 3, ShutterPriority = 4, Creative = 5, Action = 6, Portrait = 7, Landscape = 8, }// // Exposure metering modes // // // // [altair] 10.09.2003 Created // public enum ExposureMeteringModes { Unknown = 0, Average = 1, CenterWeightedAverage = 2, Spot = 3, MultiSpot = 4, MultiSegment = 5, Partial = 6, Other = 255 }// // Flash activity modes // // // // [altair] 10.09.2003 Created // public enum FlashModes { NotFired = 0, Fired = 1, FiredButNoStrobeReturned = 5, FiredAndStrobeReturned = 7, }// // Possible light sources (white balance) // // // // [altair] 10.09.2003 Created // public enum LightSources { Unknown = 0, Daylight = 1, Fluorescent = 2, Tungsten = 3, Flash = 10, StandardLightA = 17, StandardLightB = 18, StandardLightC = 19, D55 = 20, D65 = 21, D75 = 22, Other = 255 }// // EXIF data types // // // // [altair] 12.6.2004 Created // public enum ExifDataTypes : short { UnsignedByte = 1, AsciiString = 2, UnsignedShort = 3, UnsignedLong = 4, UnsignedRational = 5, SignedByte = 6, Undefined = 7, SignedShort = 8, SignedLong = 9, SignedRational = 10, SingleFloat = 11, DoubleFloat = 12 }// // Represents rational which is type of some Exif properties // // // // [altair] 10.09.2003 Created // public struct Rational { public Int32 Numerator; public Int32 Denominator;// // Converts rational to string representation // // Optional, default "/". String to be used as delimiter of components. // String representation of the rational. // // // [altair] 10.09.2003 Created // public override string ToString() { return ToString("/"); }public string ToString(string Delimiter) { return Numerator + "/" + Denominator; }// // Converts rational to double precision real number // // The rational as double precision real number. // // // [altair] 10.09.2003 Created // public double ToDouble() { return (double)Numerator / Denominator; } }#endregion// // Initializes new instance of this class. // // Bitmap to read exif information from // // // [altair] 10.09.2003 Created // public ExifManager(System.Drawing.Bitmap Bitmap) { if (Bitmap == null) throw new ArgumentNullException("Bitmap"); this._Image = Bitmap; }// // Initializes new instance of this class. // // Name of file to be loaded // // // [altair] 13.06.2004 Created // public ExifManager(string FileName) { this._Image = (System.Drawing.Bitmap)System.Drawing.Bitmap.FromFile(FileName); }// // Get or set encoding used for string metadata // // Encoding used for string metadata // Default encoding is UTF-8 // // [altair] 11.07.2004 Created // [altair] 05.09.2005 Changed from shared to instance member // public System.Text.Encoding Encoding { get { return this._Encoding; } set { if (value == null) throw new ArgumentNullException(); this._Encoding = value; } }// // Returns copy of bitmap this instance is working on // // // // // [altair] 13.06.2004 Created // public System.Drawing.Bitmap GetBitmap() { return (System.Drawing.Bitmap)this._Image.Clone(); }// // Returns all available data in formatted string form // // // // // [altair] 10.09.2003 Created // public override string ToString() { System.Text.StringBuilder SB = new StringBuilder();SB.Append("照片信息:"); SB.Append("\n\t尺寸: " + this.Width + " x " + this.Height + " px"); SB.Append("\n\t分辨率: " + this.ResolutionX + " x " + this.ResolutionY + " dpi"); SB.Append("\n\t方向: " + Enum.GetName(typeof(Orientations), this.Orientation)); SB.Append("\n\t標題: " + this.Title); SB.Append("\n\t描述: " + this.Description); SB.Append("\n\t作者: " + this.Artist); SB.Append("\n\t版權信息: " + this.Copyright); SB.Append("\n相機信息:"); SB.Append("\n\t制造商: " + this.EquipmentMaker); SB.Append("\n\t型號: " + this.EquipmentModel); SB.Append("\n\t編輯軟件: " + this.Software); SB.Append("\n時間信息:"); SB.Append("\n\t最后編輯時間: " + this.DateTimeLastModified.ToString()); SB.Append("\n\t原始拍照時間: " + this.DateTimeOriginal.ToString()); SB.Append("\n\t數字化時間: " + this.DateTimeDigitized.ToString()); SB.Append("\n拍攝信息:"); SB.Append("\n\t曝光時間: " + this.ExposureTime.ToString("N4") + " s"); SB.Append("\n\t曝光模式: " + Enum.GetName(typeof(ExposurePrograms), this.ExposureProgram)); SB.Append("\n\t測光模式: " + Enum.GetName(typeof(ExposureMeteringModes), this.ExposureMeteringMode)); SB.Append("\n\t光圈值: F" + this.Aperture.ToString("N1")); SB.Append("\n\tISO感光度: " + this.ISO); SB.Append("\n\t拍攝距離: " + this.SubjectDistance.ToString("N2") + " m"); SB.Append("\n\t焦距: " + this.FocalLength + " mm"); SB.Append("\n\t閃光燈: " + Enum.GetName(typeof(FlashModes), this.FlashMode)); SB.Append("\n\t白平衡(WB): " + Enum.GetName(typeof(LightSources), this.LightSource)); //SB.Replace("\n", vbCrLf); //SB.Replace("\t", vbTab); return SB.ToString(); }#region Nicely formatted well-known properties// // Brand of equipment (EXIF EquipMake) // // // // // [altair] 10.09.2003 Created // public string EquipmentMaker { get { return this.GetPropertyString((int)TagNames.EquipMake); } }// // Model of equipment (EXIF EquipModel) // // // // // [altair] 10.09.2003 Created // public string EquipmentModel { get { return this.GetPropertyString((int)TagNames.EquipModel); } }// // Software used for processing (EXIF Software) // // // // // [altair] 10.09.2003 Created // public string Software { get { return this.GetPropertyString((int)TagNames.SoftwareUsed); } }// // Orientation of image (position of row 0, column 0) (EXIF Orientation) // // // // // [altair] 10.09.2003 Created // public Orientations Orientation { get { Int32 X = this.GetPropertyInt16((int)TagNames.Orientation);if (!Enum.IsDefined(typeof(Orientations), X)) return Orientations.TopLeft; else return (Orientations)Enum.Parse(typeof(Orientations), Enum.GetName(typeof(Orientations), X)); } }// // Time when image was last modified (EXIF DateTime). // // // // // [altair] 10.09.2003 Created // public DateTime DateTimeLastModified { get { try { return DateTime.ParseExact(this.GetPropertyString((int)TagNames.DateTime), @"yyyy\:MM\:dd HH\:mm\:ss", null); } catch { return DateTime.MinValue; } } set { try { this.SetPropertyString((int)TagNames.DateTime, value.ToString(@"yyyy\:MM\:dd HH\:mm\:ss")); } catch { } } }// // Time when image was taken (EXIF DateTimeOriginal). // // // // // [altair] 10.09.2003 Created // public DateTime DateTimeOriginal { get { try { return DateTime.ParseExact(this.GetPropertyString((int)TagNames.ExifDTOrig), @"yyyy\:MM\:dd HH\:mm\:ss", null); } catch { return DateTime.MinValue; } } set { try { this.SetPropertyString((int)TagNames.ExifDTOrig, value.ToString(@"yyyy\:MM\:dd HH\:mm\:ss")); } catch { } } }// // Time when image was digitized (EXIF DateTimeDigitized). // // // // // [altair] 10.09.2003 Created // public DateTime DateTimeDigitized { get { try { return DateTime.ParseExact(this.GetPropertyString((int)TagNames.ExifDTDigitized), @"yyyy\:MM\:dd HH\:mm\:ss", null); } catch { return DateTime.MinValue; } } set { try { this.SetPropertyString((int)TagNames.ExifDTDigitized, value.ToString(@"yyyy\:MM\:dd HH\:mm\:ss")); } catch { } } }// // Image width // // // // // [altair] 10.09.2003 Created // [altair] 04.09.2005 Changed output to Int32, load from image instead of EXIF // public Int32 Width { get { return this._Image.Width; } }// // Image height // // // // // [altair] 10.09.2003 Created // [altair] 04.09.2005 Changed output to Int32, load from image instead of EXIF // public Int32 Height { get { return this._Image.Height; } }// // X resolution in dpi (EXIF XResolution/ResolutionUnit) // // // // // [altair] 10.09.2003 Created // public double ResolutionX { get { double R = this.GetPropertyRational((int)TagNames.XResolution).ToDouble();if (this.GetPropertyInt16((int)TagNames.ResolutionUnit) == 3) { // -- resolution is in points/cm return R * 2.54; } else { // -- resolution is in points/inch return R; } } }// // Y resolution in dpi (EXIF YResolution/ResolutionUnit) // // // // // [altair] 10.09.2003 Created // public double ResolutionY { get { double R = this.GetPropertyRational((int)TagNames.YResolution).ToDouble();if (this.GetPropertyInt16((int)TagNames.ResolutionUnit) == 3) { // -- resolution is in points/cm return R * 2.54; } else { // -- resolution is in points/inch return R; } } }// // Image title (EXIF ImageTitle) // // // // // [altair] 10.09.2003 Created // public string Title { get { return this.GetPropertyString((int)TagNames.ImageTitle); } set { try { this.SetPropertyString((int)TagNames.ImageTitle, value); } catch { } } }// // User comment (EXIF UserComment) // // // // // [altair] 13.06.2004 Created // public string UserComment { get { return this.GetPropertyString((int)TagNames.ExifUserComment); } set { try { this.SetPropertyString((int)TagNames.ExifUserComment, value); } catch { } } }// // Artist name (EXIF Artist) // // // // // [altair] 13.06.2004 Created // public string Artist { get { return this.GetPropertyString((int)TagNames.Artist); } set { try { this.SetPropertyString((int)TagNames.Artist, value); } catch { } } }// // Image description (EXIF ImageDescription) // // // // // [altair] 10.09.2003 Created // public string Description { get { return this.GetPropertyString((int)TagNames.ImageDescription); } set { try { this.SetPropertyString((int)TagNames.ImageDescription, value); } catch { } } }// // Image copyright (EXIF Copyright) // // // // // [altair] 10.09.2003 Created // public string Copyright { get { return this.GetPropertyString((int)TagNames.Copyright); } set { try { this.SetPropertyString((int)TagNames.Copyright, value); } catch { } } }// // Exposure time in seconds (EXIF ExifExposureTime/ExifShutterSpeed) // // // // // [altair] 10.09.2003 Created // public double ExposureTimeAbs { get { if (this.IsPropertyDefined((int)TagNames.ExifExposureTime)) // -- Exposure time is explicitly specified return this.GetPropertyRational((int)TagNames.ExifExposureTime).ToDouble(); else if (this.IsPropertyDefined((int)TagNames.ExifShutterSpeed)) //'-- Compute exposure time from shutter spee return (1 / Math.Pow(2, this.GetPropertyRational((int)TagNames.ExifShutterSpeed).ToDouble())); else // -- Can't figure out return 0; } }public Rational ExposureTime { get { if (this.IsPropertyDefined((int)TagNames.ExifExposureTime)) // -- Exposure time is explicitly specified return this.GetPropertyRational((int)TagNames.ExifExposureTime); else return new Rational(); } }// // Aperture value as F number (EXIF ExifFNumber/ExifApertureValue) // // // // // [altair] 10.09.2003 Created // public double Aperture { get { if (this.IsPropertyDefined((int)TagNames.ExifFNumber)) return this.GetPropertyRational((int)TagNames.ExifFNumber).ToDouble(); else if (this.IsPropertyDefined((int)TagNames.ExifAperture)) return Math.Pow(System.Math.Sqrt(2), this.GetPropertyRational((int)TagNames.ExifAperture).ToDouble()); else return 0; } }// // Exposure program used (EXIF ExifExposureProg) // // // If not specified, returns Normal (2) // // [altair] 10.09.2003 Created // public ExposurePrograms ExposureProgram { get { Int32 X = this.GetPropertyInt16((int)TagNames.ExifExposureProg);if (Enum.IsDefined(typeof(ExposurePrograms), X)) return (ExposurePrograms)Enum.Parse(typeof(ExposurePrograms), Enum.GetName(typeof(ExposurePrograms), X)); else return ExposurePrograms.Normal; } }// // ISO sensitivity // // // // // [altair] 10.09.2003 Created // public Int16 ISO { get { return this.GetPropertyInt16((int)TagNames.ExifISOSpeed); } }// // Subject distance in meters (EXIF SubjectDistance) // // // // // [altair] 10.09.2003 Created // public double SubjectDistance { get { return this.GetPropertyRational((int)TagNames.ExifSubjectDist).ToDouble(); } }// // Exposure method metering mode used (EXIF MeteringMode) // // // If not specified, returns Unknown (0) // // [altair] 10.09.2003 Created // public ExposureMeteringModes ExposureMeteringMode { get { Int32 X = this.GetPropertyInt16((int)TagNames.ExifMeteringMode);if (Enum.IsDefined(typeof(ExposureMeteringModes), X)) return (ExposureMeteringModes)Enum.Parse(typeof(ExposureMeteringModes), Enum.GetName(typeof(ExposureMeteringModes), X)); else return ExposureMeteringModes.Unknown; } }// // Focal length of lenses in mm (EXIF FocalLength) // // // // // [altair] 10.09.2003 Created // public double FocalLength { get { return this.GetPropertyRational((int)TagNames.ExifFocalLength).ToDouble(); } }// // Flash mode (EXIF Flash) // // // If not present, value NotFired (0) is returned // // [altair] 10.09.2003 Created // public FlashModes FlashMode { get { Int32 X = this.GetPropertyInt16((int)TagNames.ExifFlash);if (Enum.IsDefined(typeof(FlashModes), X)) return (FlashModes)Enum.Parse(typeof(FlashModes), Enum.GetName(typeof(FlashModes), X)); else return FlashModes.NotFired; } }// // Light source / white balance (EXIF LightSource) // // // If not specified, returns Unknown (0). // // [altair] 10.09.2003 Created // public LightSources LightSource { get { Int32 X = this.GetPropertyInt16((int)TagNames.ExifLightSource);if (Enum.IsDefined(typeof(LightSources), X)) return (LightSources)Enum.Parse(typeof(LightSources), Enum.GetName(typeof(LightSources), X)); else return LightSources.Unknown; } }#endregion#region Support methods for working with EXIF properties// // Checks if current image has specified certain property // // // True if image has specified property, False otherwise. // // // [altair] 10.09.2003 Created // public bool IsPropertyDefined(Int32 PID) { return (Array.IndexOf(this._Image.PropertyIdList, PID) > -1); }// // Gets specified Int32 property // // Property ID // Optional, default 0. Default value returned if property is not present. // Value of property or DefaultValue if property is not present. // // // [altair] 10.09.2003 Created // public Int32 GetPropertyInt32(Int32 PID) { return GetPropertyInt32(PID, 0); }public Int32 GetPropertyInt32(Int32 PID, Int32 DefaultValue) { if (IsPropertyDefined(PID)) return GetInt32(this._Image.GetPropertyItem(PID).Value); else return DefaultValue; }// // Gets specified Int16 property // // Property ID // Optional, default 0. Default value returned if property is not present. // Value of property or DefaultValue if property is not present. // // // [altair] 10.09.2003 Created // public Int16 GetPropertyInt16(Int32 PID) { return GetPropertyInt16(PID, 0); }public Int16 GetPropertyInt16(Int32 PID, Int16 DefaultValue) { if (IsPropertyDefined(PID)) return GetInt16(this._Image.GetPropertyItem(PID).Value); else return DefaultValue; }// // Gets specified string property // // Property ID // Optional, default String.Empty. Default value returned if property is not present. // // Value of property or DefaultValue if property is not present. // // [altair] 10.09.2003 Created // public string GetPropertyString(Int32 PID) { return GetPropertyString(PID, ""); }public string GetPropertyString(Int32 PID, string DefaultValue) { if (IsPropertyDefined(PID)) return GetString(this._Image.GetPropertyItem(PID).Value); else return DefaultValue; }// // Gets specified property in raw form // // Property ID // Optional, default Nothing. Default value returned if property is not present. // // Is recommended to use typed methods (like etc.) instead, when possible. // // [altair] 05.09.2005 Created // public byte[] GetProperty(Int32 PID, byte[] DefaultValue) { if (IsPropertyDefined(PID)) return this._Image.GetPropertyItem(PID).Value; else return DefaultValue; }public byte[] GetProperty(Int32 PID) { return GetProperty(PID, null); }// // Gets specified rational property // // Property ID // // Value of property or 0/1 if not present. // // [altair] 10.09.2003 Created // public Rational GetPropertyRational(Int32 PID) { if (IsPropertyDefined(PID)) return GetRational(this._Image.GetPropertyItem(PID).Value); else { Rational R; R.Numerator = 0; R.Denominator = 1; return R; } }// // Sets specified string property // // Property ID // Value to be set // // // [altair] 12.6.2004 Created // public void SetPropertyString(Int32 PID, string Value) { byte[] Data = this._Encoding.GetBytes(Value + '\0'); SetProperty(PID, Data, ExifDataTypes.AsciiString); }// // Sets specified Int16 property // // Property ID // Value to be set // // // [altair] 12.6.2004 Created // public void SetPropertyInt16(Int32 PID, Int16 Value) { byte[] Data = new byte[2]; Data[0] = (byte)(Value & 0xFF); Data[1] = (byte)((Value & 0xFF00) >> 8); SetProperty(PID, Data, ExifDataTypes.SignedShort); }// // Sets specified Int32 property // // Property ID // Value to be set // // // [altair] 13.06.2004 Created // public void SetPropertyInt32(Int32 PID, Int32 Value) { byte[] Data = new byte[4]; for (int I = 0; I < 4; I++) { Data[I] = (byte)(Value & 0xFF); Value >>= 8; } SetProperty(PID, Data, ExifDataTypes.SignedLong); }// // Sets specified property in raw form // // Property ID // Raw data // EXIF data type // Is recommended to use typed methods (like etc.) instead, when possible. // // [altair] 12.6.2004 Created // public void SetProperty(Int32 PID, byte[] Data, ExifDataTypes Type) { System.Drawing.Imaging.PropertyItem P = this._Image.PropertyItems[0]; P.Id = PID; P.Value = Data; P.Type = (Int16)Type; P.Len = Data.Length; this._Image.SetPropertyItem(P); }// // Reads Int32 from EXIF bytearray. // // EXIF bytearray to process // // // // [altair] 10.09.2003 Created // [altair] 05.09.2005 Changed from public shared to private instance method // private Int32 GetInt32(byte[] B) { if (B.Length < 4) throw new ArgumentException("Data too short (4 bytes expected)", "B");return B[3] << 24 | B[2] << 16 | B[1] << 8 | B[0]; }// // Reads Int16 from EXIF bytearray. // // EXIF bytearray to process // // // // [altair] 10.09.2003 Created // [altair] 05.09.2005 Changed from public shared to private instance method // private Int16 GetInt16(byte[] B) { if (B.Length < 2) throw new ArgumentException("Data too short (2 bytes expected)", "B");return (short)(B[1] << 8 | B[0]); }// // Reads string from EXIF bytearray. // // EXIF bytearray to process // // // // [altair] 10.09.2003 Created // [altair] 05.09.2005 Changed from public shared to private instance method // private string GetString(byte[] B) { string R = this._Encoding.GetString(B); if (R.EndsWith("\0")) R = R.Substring(0, R.Length - 1); return R; }// // Reads rational from EXIF bytearray. // // EXIF bytearray to process // // // // [altair] 10.09.2003 Created // [altair] 05.09.2005 Changed from public shared to private instance method // private Rational GetRational(byte[] B) { Rational R = new Rational(); byte[] N = new byte[4]; byte[] D = new byte[4]; Array.Copy(B, 0, N, 0, 4); Array.Copy(B, 4, D, 0, 4); R.Denominator = this.GetInt32(D); R.Numerator = this.GetInt32(N); return R; }public void Save(string fileName){this._Image.Save(fileName); } #endregion#region " IDisposable implementation "// // Disposes unmanaged resources of this class // // // // [altair] 10.09.2003 Created // public void Dispose() { this._Image.Dispose(); }#endregion} }

    C#代碼 ?
  • using?System; ??
  • using?System.Collections.Generic; ??
  • using?System.Text; ??
  • using?System.Windows.Forms; ??
  • using?System.Windows.Forms.Design; ??
  • ??
  • /** ?
  • ?*?對話框工具 ?
  • ?*? ?
  • ?*?@author?LianTao ?
  • ?*?@version?1.0?????2008.11.01 ?
  • ?*/??
  • namespace?Utils ??
  • { ??
  • ????public?class?DialogUtil?:?FolderNameEditor ??
  • ????{ ??
  • ????????FolderNameEditor.FolderBrowser?fDialog?=?new??
  • ????????System.Windows.Forms.Design.FolderNameEditor.FolderBrowser(); ??
  • ???????? ??
  • ????????/**? ?
  • ?????????*?構造函數 ?
  • ?????????*/??
  • ????????public?DialogUtil()? ??
  • ????????{? ??
  • ????????} ??
  • ??
  • ????????/**? ?
  • ?????????*?打開“瀏覽”對話框 ?
  • ?????????*/??
  • ????????public?DialogResult?ShowFolderDialog() ??
  • ????????{ ??
  • ????????????return?ShowFolderDialog("請選擇一個文件夾"); ??
  • ????????} ??
  • ??
  • ????????/**? ?
  • ?????????*?打開“瀏覽”對話框 ?
  • ?????????*? ?
  • ?????????*?@param?description ?
  • ?????????*??????????????????????????對話框的標題 ?
  • ????????*/??
  • ????????public?DialogResult?ShowFolderDialog(string?description) ??
  • ????????{ ??
  • ????????????fDialog.Description?=?description; ??
  • ????????????fDialog.StartLocation?=?FolderBrowserFolder.Desktop; ??
  • ????????????return?fDialog.ShowDialog(); ??
  • ????????} ??
  • ????????~DialogUtil() ??
  • ????????{ ??
  • ????????????fDialog.Dispose(); ??
  • ????????} ??
  • ????}??
  • 總結

    以上是生活随笔為你收集整理的jpeg 标志的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

    国产一级免费在线 | 日韩理论电影网 | 麻豆视频免费入口 | 久草精品视频 | 在线观看日韩专区 | 免费在线观看91 | 中文字幕精品一区 | 久久伊人色综合 | 香蕉视频久久久 | 日韩精品在线视频 | 国产精品二区在线观看 | 欧美激情精品 | av在线网站免费观看 | 亚洲精品美女久久 | 色综合久久88色综合天天6 | 亚洲综合视频在线观看 | 婷婷九九 | 在线视频 成人 | 国产精品久久久久一区二区国产 | 国产高清网站 | 久久香蕉影视 | 欧美激情精品久久久久久免费 | 成人xxxx | 日本系列中文字幕 | 亚洲精品在线视频播放 | 国产精品永久免费在线 | 在线之家免费在线观看电影 | av免费在线网| 日本99干网 | 日韩二区三区在线观看 | 国产精品久久久久久久久久白浆 | 日韩中文字幕在线看 | 日韩久久久久久久 | 亚洲精品在线观看网站 | 国产 中文 日韩 欧美 | 亚洲高清久久久 | 久久av观看| 91精品在线观看视频 | 久久首页 | 日韩资源在线播放 | 天天色播 | 亚洲高清视频在线播放 | 日韩美女免费线视频 | 中文字幕欧美日韩va免费视频 | 韩日电影在线观看 | 五月视频 | 中文av字幕在线观看 | 国产69精品久久久久9999apgf | 亚洲91视频 | 久久手机精品视频 | 综合网天天色 | 丁香五月缴情综合网 | 成人97视频| 久久精品一二三区白丝高潮 | 丁香六月五月婷婷 | 成人一级影视 | 天天鲁一鲁摸一摸爽一爽 | 一区二区视频在线免费观看 | 亚洲精品午夜久久久久久久 | 欧美一二三视频 | 色九九在线 | 天天色天天上天天操 | 九九影视理伦片 | 一区二区三区在线免费观看视频 | 日韩视频一区二区三区 | 国产人成免费视频 | 激情伊人| 在线日韩中文 | 丁香婷婷色综合亚洲电影 | 成人久久综合 | 337p日本大胆噜噜噜噜 | 国产精品久久久久免费 | 免费高清在线观看成人 | 国产美女主播精品一区二区三区 | 欧美一区二区三区在线看 | 夜色资源站国产www在线视频 | 中文字幕在线视频一区二区 | 国产日产精品一区二区三区四区 | 精品国产一区二区久久 | 日韩精品中文字幕在线观看 | 国产高清av在线播放 | 国产精品热 | 国产精品久久一区二区三区, | 97人人模人人爽人人喊网 | 国产精品一码二码三码在线 | 欧美-第1页-屁屁影院 | 91视频免费看网站 | 日韩av网址在线 | 久热av在线 | 国产精品久久人 | 在线观看免费色 | 香蕉视频18 | 五月丁色 | 免费在线观看av网址 | 色99在线| 中文字幕国产一区二区 | 国产91丝袜在线播放动漫 | 深夜免费福利 | 国产一区二区不卡视频 | 国产精品亚洲片在线播放 | 国产玖玖在线 | 丁香五香天综合情 | av在线永久免费观看 | 天天操网址 | 婷婷亚洲综合 | 91成人欧美| 亚洲精品一区二区三区在线观看 | 欧美有色| 久色伊人 | 亚洲国产激情 | 91禁看片| 久艹在线观看视频 | 免费在线观看av网址 | 精品在线亚洲视频 | 麻豆免费在线视频 | 欧美日韩一区二区久久 | 国产啊v在线 | 欧美综合色 | 六月丁香激情综合色啪小说 | 在线黄色国产 | 成人黄在线观看 | 日韩成人在线免费观看 | 欧美精品亚州精品 | 国产精品一区二区无线 | 麻豆国产露脸在线观看 | 天天射天天艹 | 四虎精品成人免费网站 | 干天天| 久草在线资源免费 | 日韩视频一区二区三区 | 日韩精品短视频 | 国产精品一区二区av麻豆 | 成年人黄色av | 久久久精品影视 | 成人免费观看视频大全 | 久久在线视频在线 | 日韩精品偷拍 | 99re8这里有精品热视频免费 | 少妇bbb| 国内精品久久久久影院一蜜桃 | 国产一区二区三区黄 | 在线观看av网站 | 激情欧美日韩一区二区 | 热久久免费国产视频 | 99婷婷| 亚洲日本欧美在线 | 91精品夜夜 | 成人av影视 | 久久高清免费 | 亚洲情感电影大片 | 99国内精品久久久久久久 | 91桃色免费视频 | 色婷丁香| 日韩视频免费 | 五月天婷婷在线观看视频 | 草久久精品 | 成人网在线免费视频 | 日韩欧美高清视频在线观看 | 久久系列| 色综合中文综合网 | 久久久久国产精品厨房 | 黄色一二级片 | 欧美极度另类性三渗透 | 欧美日韩在线视频免费 | 免费成人黄色av | 在线免费观看麻豆视频 | 午夜黄色一级片 | 美女福利视频一区二区 | 国产免费人成xvideos视频 | 亚洲日本va中文字幕 | 欧美成人精品欧美一级乱黄 | 久久久久久久久精 | 色a资源在线 | 亚洲欧美成人 | 亚洲黄色网络 | 99久久婷婷国产一区二区三区 | 国产亚洲情侣一区二区无 | 久草在线费播放视频 | 国产精品96久久久久久吹潮 | 中文字幕在线高清 | 久久久一本精品99久久精品 | 中文字幕丝袜 | 99久久综合精品五月天 | 国产99在线免费 | 久久久wwww| 九九99靖品| 精品久久久久久久久久久久 | 99在线视频观看 | www.国产毛片| 黄色av免费电影 | 992tv又爽又黄的免费视频 | 91在线观看欧美日韩 | 超碰夜夜 | 国产永久免费观看 | 99精品在线免费观看 | 国产精品白丝jk白祙 | 日韩特黄一级欧美毛片特黄 | 精品在线亚洲视频 | 国产资源精品在线观看 | 欧美激情在线网站 | 成人中文字幕在线观看 | 久久狠狠一本精品综合网 | 日韩剧 | 中文字幕日本电影 | 久久er99热精品一区二区三区 | 色av色av色av | 亚洲成 人精品 | 日韩免费看视频 | 日本中文字幕网址 | 国产视频精品免费 | 最近中文字幕在线中文高清版 | 丁香婷婷久久 | 国产精品久久久久久久久久 | 日日干日日操 | av电影一区二区三区 | 国产午夜精品av一区二区 | 91av视频| 在线视频手机国产 | 91福利视频网站 | 91午夜精品 | 国产97视频在线 | 日韩偷拍精品 | 国产日韩欧美在线影视 | 91成人在线观看高潮 | 久久久国产一区二区 | 正在播放国产一区二区 | 久久久久久久久久久福利 | 亚洲aⅴ在线观看 | 国产成人精品一区二区三区 | 91在线视频免费 | 超碰97久久 | 成人免费网站在线观看 | 欧美日韩精品免费观看视频 | 天天色影院 | 涩涩伊人 | 国产99久久精品一区二区300 | 欧美午夜激情网 | 涩涩成人在线 | 在线免费黄 | 在线观看日韩中文字幕 | 久久久99精品免费观看乱色 | 欧美一级性生活视频 | 国产精品久久网站 | 99久久久国产免费 | 国产精品普通话 | 亚洲久在线| 久久国产经典视频 | 国产精品久久久777 成人手机在线视频 | 国产日产在线观看 | 在线黄频 | 欧美成人中文字幕 | 西西大胆啪啪 | 久久久久久久久免费视频 | 99久热精品 | 亚洲午夜久久久综合37日本 | 免费av成人在线 | 国产高清在线精品 | 男女免费av | www.色的 | 久久视频这里只有精品 | 午夜美女av| 欧美一级免费黄色片 | 久久激情影院 | www.夜夜干.com | 中文字幕在线观看免费高清完整版 | 在线亚洲播放 | 欧美 日韩 国产 中文字幕 | 在线国产福利 | 制服丝袜一区二区 | 欧美a视频 | 日韩午夜电影 | 日本公妇在线观看高清 | 国产精品大片免费观看 | 亚洲精品电影在线 | 蜜臀av麻豆| 国产理论一区二区三区 | 久久婷婷色 | 麻花豆传媒mv在线观看 | 免费成人在线视频网站 | 视频在线观看一区 | 亚洲激情中文 | 亚洲国产精品va在线看 | 久久久久人人 | 久久天天躁夜夜躁狠狠躁2022 | 天天色天| 精品女同一区二区三区在线观看 | 在线视频欧美日韩 | 国产乱对白刺激视频在线观看女王 | 日本韩国欧美在线观看 | 99re8这里有精品热视频免费 | 97成人超碰 | 久久久精品欧美一区二区免费 | av一级片网站 | 亚洲资源在线观看 | 天天干天天做天天爱 | 欧美人体xx | 国产福利免费看 | 在线观看中文字幕视频 | 国产一区免费看 | 日韩在线色 | 最近免费中文字幕 | 久久久福利视频 | www.五月天色| 久久久在线观看 | 天天鲁一鲁摸一摸爽一爽 | 国内外成人在线视频 | 少妇搡bbbb搡bbb搡aa | 九九精品久久 | 国产一区二区免费看 | 免费看特级毛片 | 手机成人免费视频 | 国产精品免费久久久久 | 欧美地下肉体性派对 | 国产美女在线精品免费观看 | 成人网色 | 国产成人精品亚洲a | av网站免费在线 | 91尤物国产尤物福利在线播放 | 欧美大香线蕉线伊人久久 | 人人爽人人射 | av黄在线播放 | 美女黄濒| 久久久久久久影视 | 久久视频网址 | 精精国产xxxx视频在线播放 | 日本成址在线观看 | 中文字幕国产一区 | 日韩精品字幕 | 国产精品99久久久久久武松影视 | 国产精品一区二区视频 | 午夜av片| 婷婷在线网| 日韩免费观看高清 | 玖玖玖影院 | 99视频网址| 久久视频国产精品免费视频在线 | 在线超碰av | 99久久久免费视频 | 91九色视频观看 | 色婷婷国产在线 | 在线免费观看黄色小说 | 亚洲精品88欧美一区二区 | 日韩av一区二区三区四区 | 免费黄色在线 | 97精品国产91久久久久久 | 韩国一区视频 | 国产伦精品一区二区三区无广告 | 国产高清视频色在线www | 在线天堂日本 | 日本精品中文字幕在线观看 | 国产女人40精品一区毛片视频 | 久久超碰免费 | 久久久久久久电影 | 五月天激情开心 | 日韩大片在线看 | 国产在线观看91 | 成人黄色片免费看 | 日批视频国产 | 久久这里只有精品23 | 久久成人午夜视频 | 久久综合影音 | 成人 亚洲 欧美 | 欧美 亚洲 另类 激情 另类 | 日日天天狠狠 | 日韩电影中文字幕 | 精品亚洲一区二区三区 | 日韩中文字幕在线观看 | 久久精品视频4 | 久久人人爽人人爽人人片av软件 | av免费网站观看 | 91九色蝌蚪国产 | 中文字幕精 | 色综合网| 久久国产精品偷 | 2019精品手机国产品在线 | 久久久久久久影院 | 亚洲一区av| 日日干 天天干 | 久久激情视频免费观看 | 国产在线更新 | 99久高清在线观看视频99精品热在线观看视频 | 亚洲精品在线播放视频 | 精品一区二区免费视频 | 欧美aaa大片 | 成人免费观看大片 | 日日夜夜狠狠干 | 欧美高清成人 | 免费在线观看不卡av | 日韩二区三区在线 | 日韩一区二区三区高清在线观看 | 国产精品久久久久久久久久久久冷 | 99热这里只有精品8 久久综合毛片 | 缴情综合网五月天 | 久久国产香蕉视频 | 国产精品乱码在线 | 免费国产在线精品 | 国产精品久久久久久久久久新婚 | 国产一级视频 | 亚洲网站在线 | 国产成人99av超碰超爽 | 91精品久久久久久久久久久久久 | 在线观看黄网站 | 狠狠五月天 | 亚洲黄色免费观看 | 成人18视频 | 成人黄色免费观看 | 98涩涩国产露脸精品国产网 | 欧美日韩国产一区二区在线观看 | 国产一区视频在线播放 | 亚洲激情中文 | 婷婷色中文 | 亚洲欧美视频一区二区三区 | 毛片a级片 | 免费在线观看污网站 | 偷拍福利视频一区二区三区 | 久久综合狠狠狠色97 | 亚洲精品国偷自产在线91正片 | 亚洲最大av| 婷婷五月情 | 国产资源中文字幕 | 亚洲免费小视频 | 国产高清视频 | 玖玖爱免费视频 | 国产一级二级在线播放 | av免费看电影 | 免费情缘 | 丁香婷婷深情五月亚洲 | 99视频在线观看一区三区 | 久久久久亚洲精品中文字幕 | 久在线观看视频 | 天天操天天摸天天干 | 天天草天天干天天射 | 五月婷婷综合激情 | 国产自在线 | 免费视频你懂的 | 欧美另类成人 | 久久久夜色 | 不卡av电影在线 | 日本激情动作片免费看 | 中文字幕大全 | 超碰在线观看av | 国产九九热视频 | 国产精品久久久久999 | 奇米四色影狠狠爱7777 | 特黄免费av | 国产美女视频黄a视频免费 久久综合九色欧美综合狠狠 | 黄色av一级 | aaa免费毛片| 久久8精品 | 国产高清无av久久 | 国产网站av | 一区二区视频在线免费观看 | 精品av在线播放 | 日日操操操 | 91mv.cool在线观看 | 亚洲国产精久久久久久久 | 色婷婷啪啪免费在线电影观看 | 五月天丁香视频 | 综合铜03 | 亚洲情婷婷 | 国产成人一级电影 | 激情文学综合丁香 | 麻花传媒mv免费观看 | 在线视频 区 | 麻豆系列在线观看 | 色在线中文字幕 | 色婷婷骚婷婷 | 一区二区三区动漫 | 天天躁日日| 日本精品久久久久 | 97av影院| 91av小视频 | 久久国产精品免费观看 | av在线一二三区 | 日韩精品久久一区二区三区 | 国产一级一片免费播放放a 一区二区三区国产欧美 | 麻豆国产在线视频 | 热久久影视 | 黄网av在线 | 中文日韩在线 | 麻豆国产露脸在线观看 | 午夜精品一区二区三区免费 | 美女视频黄在线观看 | 欧亚日韩精品一区二区在线 | 精品视频成人 | 亚洲精品乱码久久久久久写真 | 中文字幕有码在线播放 | 国产午夜三级一二三区 | 国产精品99久久免费黑人 | 亚洲高清视频在线观看免费 | 国产一区二区视频在线 | 亚洲精品国产自产拍在线观看 | 四虎影视成人精品国库在线观看 | 天天色天天综合 | 99视频这里只有 | 国产精品久久久久久一区二区 | 日韩av一区二区三区在线观看 | 色综合久久久久综合体桃花网 | 欧美日韩视频一区二区三区 | 天天色 天天 | 韩国av免费观看 | 精品麻豆入口免费 | 手机在线欧美 | 免费高清国产 | 日日夜夜天天 | 久久精品1区2区 | 国产伦精品一区二区三区在线 | 国产黄色高清 | 亚洲人片在线观看 | 91久草视频 | av一级二级 | 免费在线观看av网址 | 四虎国产精品免费观看视频优播 | 99久久婷婷国产一区二区三区 | 欧美日韩一级视频 | 亚洲欧美日本A∨在线观看 青青河边草观看完整版高清 | 日韩黄色免费在线观看 | 亚洲精品一区二区三区新线路 | 欧美色精品天天在线观看视频 | 精品国产1区二区 | www看片网站 | 国产日韩精品一区二区在线观看播放 | 亚洲永久免费av | 91网在线观看 | 欧美日韩视频精品 | av三级av| 丁香视频全集免费观看 | 视频一区久久 | 超碰97国产在线 | 国产丝袜网站 | 在线视频亚洲 | 久久国产精品二国产精品中国洋人 | 91最新在线观看 | 激情影音| 婷婷久久五月天 | 久久99国产综合精品免费 | 色欧美视频 | 色91av| 精品视频免费看 | 免费黄色av电影 | 高清中文字幕av | 五月天亚洲激情 | 国产专区精品视频 | 国产超碰在线 | 日日夜夜网 | 欧美福利久久 | 黄色大全免费观看 | 超碰97免费 | 国产一区二区三区在线 | 99免费国产 | 亚洲视频 中文字幕 | 国内精品久久久久影院一蜜桃 | 五月花激情 | 国产精品1区2区3区 久久免费视频7 | 麻豆视频免费看 | 黄色在线观看www | 国产成人黄色片 | 亚洲天堂精品 | a在线播放 | 菠萝菠萝蜜在线播放 | 欧美在线观看视频免费 | 91久久久久久国产精品 | 在线亚洲人成电影网站色www | 国产午夜精品一区二区三区在线观看 | 九七在线视频 | 国产在线一卡 | 国产精品久久久久久妇 | 国产精品免费在线视频 | 人人盈棋牌 | 激情喷水| 国产免费三级在线观看 | 超碰在线最新地址 | 337p西西人体大胆瓣开下部 | 在线观看免费福利 | 日韩乱理 | 久久综合桃花 | 亚洲国产操 | 欧美日韩一级在线 | 能在线看的av | 视频91 | 国产精品白浆视频 | 免费观看一区 | av九九| 在线黄频 | 精品久久久久一区二区国产 | 成人影视免费 | 成人免费看片网址 | 黄色国产区 | 色97在线| 亚洲国产69 | 午夜av不卡| 国产午夜影院 | 国产999精品久久久影片官网 | 久久99精品热在线观看 | 精品久久久久久久久久国产 | 婷婷九月激情 | 亚洲国产精品成人va在线观看 | 狠狠干狠狠操 | 在线观看国产麻豆 | 久久久国产精品视频 | 麻豆 91 在线 | 免费a视频在线观看 | 狠狠干天天射 | 国产高清在线免费 | 奇米先锋| 国产美女黄网站免费 | 国产精品第一 | 操碰av | 中文字幕在线观看网站 | 国产一区自拍视频 | 在线黄色国产电影 | 91麻豆精品国产91久久久使用方法 | 精品亚洲视频在线观看 | 干天天| av高清在线 | 国产一级不卡毛片 | 久久好看免费视频 | 久久久久麻豆v国产 | 欧美精品v国产精品 | 在线看国产精品 | 国产精品自产拍在线观看中文 | 在线观看午夜av | 一区在线免费观看 | 日韩成人免费在线观看 | 精品久久视频 | 欧美精品乱码久久久久久按摩 | 国产成人在线网站 | www久草 | 欧美成人性战久久 | 毛片3| 91av在线视频播放 | 在线视频日韩欧美 | 欧美黑人性爽 | 日韩动漫免费观看高清完整版在线观看 | 国产精品不卡av | 欧美一级电影 | 亚洲精品久久久久999中文字幕 | 97超在线 | 国产一区二区精品久久 | 成人羞羞免费 | 91手机视频在线 | 97在线免费 | 黄视频网站大全 | 1000部18岁以下禁看视频 | 久久综合欧美精品亚洲一区 | 日韩午夜精品 | 欧美精品免费在线观看 | 久久国产精品免费观看 | 亚洲人成在线观看 | 探花在线观看 | 中文字幕在线免费播放 | 精品久久久久久国产 | 亚洲视频999 | 色综合小说 | 91精品久久久久久综合乱菊 | 亚洲精品www久久久久久 | 国产亚洲久一区二区 | 中文十次啦| 四虎在线视频 | 免费黄色av电影 | 天天射一射 | 国产在线观看黄 | 中文字幕在线播出 | 黄色的视频网站 | 日本黄色免费在线观看 | 亚洲午夜久久久久久久久电影网 | 在线看岛国av | 天天激情| 国产日韩中文字幕在线 | 亚洲一级片av | 毛片永久免费 | 久久精品免费 | 麻豆视频在线免费观看 | 国产精品第10页 | 国产丝袜网站 | 午夜18视频在线观看 | 91少妇精拍在线播放 | 黄色软件视频网站 | 九九爱免费视频 | 久久天天躁狠狠躁夜夜不卡公司 | 中文字幕.av.在线 | 亚洲精品乱码久久久久久9色 | 国产精品久久久久久a | 日韩中文字幕亚洲一区二区va在线 | 日韩成人看片 | 在线成人小视频 | av三级在线免费观看 | 四虎5151久久欧美毛片 | 一级a性色生活片久久毛片波多野 | 久久亚洲综合国产精品99麻豆的功能介绍 | 免费观看完整版无人区 | 午夜精品久久久久久久99婷婷 | 91免费视频网站在线观看 | 一区二区三区精品久久久 | 国外成人在线视频网站 | 中文字幕乱码电影 | 亚洲人久久久 | 久99视频| 精品欧美一区二区精品久久 | 久久久99精品免费观看乱色 | 久久福利综合 | 中字幕视频在线永久在线观看免费 | 中国一级片在线 | 精壮的侍卫呻吟h | 国产成人精品一区二区三区在线观看 | 三级av免费看 | 免费看av在线 | 91成人精品国产刺激国语对白 | jizzjizzjizz亚洲| 99热这里是精品 | 国语精品免费视频 | 69精品视频| 午夜精品在线看 | 亚洲免费不卡 | 久久精品一区 | 蜜臀久久99精品久久久无需会员 | 国产一区观看 | 欧美在线日韩在线 | 亚洲一区二区三区91 | 免费看污的网站 | 亚洲观看黄色网 | 午夜精品成人一区二区三区 | 91成人精品| 久久久久国产精品一区 | 波多野结衣视频一区二区 | 亚洲dvd | 天天色天天射综合网 | 香蕉在线播放 | 日韩欧美电影 | 成人在线一区二区三区 | 欧美日韩一区二区三区在线免费观看 | 97网| 成人福利在线 | 99精品国产免费久久久久久下载 | 婷婷久草| 亚洲综合成人av | 天天干天天做天天操 | 日韩欧美在线视频一区二区三区 | 久久中文精品视频 | 精品中文字幕在线观看 | 成人午夜电影久久影院 | 天天爽夜夜爽精品视频婷婷 | 91视频免费看片 | 视频1区2区 | 啪啪免费试看 | 欧美一区二区日韩一区二区 | 国产视频中文字幕 | 中文字幕在线观看完整版电影 | 久草视频视频在线播放 | 亚洲伊人第一页 | 国产一线二线三线性视频 | 久久九九国产精品 | 天天爱天天操天天干 | 国产高清无线码2021 | 毛片网免费 | 久久影视精品 | 亚洲精品国产品国语在线 | 91成人免费看 | 亚洲黄色片一级 | 五月婷婷六月丁香在线观看 | 欧美精品生活片 | 99视频在线看 | 最新国产精品拍自在线播放 | 久草爱视频 | 夜夜高潮夜夜爽国产伦精品 | 一区二区三区污 | 久久久久久片 | 久久久久成人精品亚洲国产 | 在线国产欧美 | 99热这里只有精品免费 | 日韩精品一区二区三区视频播放 | 韩日av在线| 成人av网页| 久久久综合 | 亚洲国产美女久久久久 | 伊人亚洲精品 | 精品99久久| 国产精品福利午夜在线观看 | 亚洲精品一区二区三区新线路 | 伊人伊成久久人综合网小说 | 久久免费黄色网址 | 久久精品爱爱视频 | 国产精品自产拍在线观看桃花 | 免费av在线播放 | 国产精品久久久久久久久免费看 | 中文字幕在线观看免费高清电影 | 日日草视频 | 欧美成人黄 | 中文字幕高清有码 | 亚州天堂 | 欧美先锋影音 | 一区二区三区免费在线观看视频 | 欧美一级日韩三级 | 高清av在线 | 久久激情五月婷婷 | 韩国av电影在线观看 | 亚洲亚洲精品在线观看 | 欧美激情精品久久久久久 | 午夜久操| 一区二区影视 | 人人射人人插 | 日韩三级视频在线观看 | 亚洲欧美色婷婷 | 一区二区三区四区免费视频 | 国产精品永久久久久久久www | 国产一级特黄毛片在线毛片 | 免费黄色av电影 | 在线观看日本高清mv视频 | 看片网站黄色 | 亚洲电影图片小说 | 久久久国产精品视频 | 香蕉视频久久久 | 99热官网 | 婷婷电影网 | 一区二区三区在线免费 | 中日韩男男gay无套 日韩精品一区二区三区高清免费 | 在线免费观看的av | 三上悠亚一区二区在线观看 | 国产伦理精品一区二区 | 国产99久久精品一区二区永久免费 | 天天干天天摸 | 五月婷婷久 | 日日干 天天干 | 黄色一级免费 | 成人久久免费 | 欧美另类z0zx | 国产69精品久久久久久久久久 | 久福利| 日韩专区中文字幕 | 天天狠狠干| 992tv在线成人免费观看 | 久久国产精品99久久久久 | 精品在线观看免费 | 西西444www大胆高清图片 | 国产精品va在线观看入 | 久久免费公开视频 | 日韩二区三区在线 | 国产综合精品一区二区三区 | 97免费在线视频 | 久久免费片 | 五月激情视频 | 在线观看国产一区 | 韩日电影在线 | 国产女人免费看a级丨片 | 黄色录像av| 在线观看黄色的网站 | 18网站在线观看 | 欧美一区二区免费在线观看 | 日韩欧美一区二区在线播放 | 亚洲精品免费观看视频 | 992tv在线| 亚洲欧美成人综合 | 91av视频观看| 国产大片免费久久 | 狠狠干干 | 日韩伦理一区二区三区av在线 | 9999精品 | 日韩欧美精品一区二区 | 国产精品视频在线观看 | 亚洲综合成人在线 | 日韩成人欧美 | 人人射网站 | www婷婷| 99精品视频免费看 | 麻豆91在线看 | 亚洲欧美日韩国产一区二区 | 色噜噜在线观看视频 | 色黄www小说 | 久久av网址| 国产又粗又猛又爽 | 日韩高清免费无专码区 | 亚洲精品色 | 视频一区二区免费 | 婷婷在线播放 | 狠狠操狠狠干2017 | 国产精品久久久久久久久久久久午夜片 | 久久麻豆视频 | 欧美日韩国产精品一区二区三区 | 在线免费观看麻豆 | 国产精品久久久久久久久久新婚 | 在线有码中文字幕 | 怡红院av久久久久久久 | 成人av网站在线 | 国产99久久九九精品免费 | 中文字幕资源网 | 中文字幕在线观看一区 | 国产成人三级在线观看 | 久草亚洲视频 | 91久久国产综合精品女同国语 | 韩国av免费看 | www.午夜| 91九色视频导航 | 久久精品国产成人精品 | 亚洲免费一级电影 | 久久免费播放视频 | 日韩天天综合 | 久久99视频 | 国产成人精品亚洲精品 | 人人爱在线视频 | 天堂va在线高清一区 | 欧美精品乱码久久久久 | 国产在线播放一区 | 久久一精品 | 中文字幕人成人 | 国产精品日韩久久久久 | 国产精品一区二区无线 | 日韩三级视频在线观看 | 日韩av不卡在线播放 | 国产成人精品aaa | 成人免费看片98欧美 | 成年人免费观看国产 | 日本精品视频在线 | 亚洲女欲精品久久久久久久18 | 日韩免费一级电影 | 伊人伊成久久人综合网小说 | 婷婷丁香自拍 | 久久理论影院 | 2018亚洲男人天堂 | 天天操天天色综合 | 欧美久久成人 | 日本黄色免费观看 | 色婷婷a | 国产精品一级在线 | 日韩在线不卡 | 蜜臀av性久久久久av蜜臀妖精 | 国产手机在线观看视频 | 日韩在线三区 | 久久中文字幕视频 | www.午夜 | 97av免费视频 | 在线观看 亚洲 | 久久乱码卡一卡2卡三卡四 五月婷婷久 | 久久精品99国产精品酒店日本 | 开心激情网五月天 | 欧美另类视频 | 超碰在线观看97 | 成人av在线直播 | 在线观看免费版高清版 | 人人舔人人爱 | 波多野结衣电影一区二区三区 | 一区在线观看 | 美女久久网站 | 久久激情久久 | 亚洲爱爱视频 | 国产精品理论片在线观看 | 国产一级黄色av | 2000xxx影视 | 99久久夜色精品国产亚洲96 | 婷婷色综合网 | 六月天色婷婷 | 人人爽人人爱 | 麻豆精品传媒视频 | 开心色插 | 欧美 国产 视频 | 国产在线视频不卡 | 国产美女精彩久久 | 国产一区二区在线播放视频 | 免费看国产视频 | 国产精品男女 | 亚洲精品美女久久久久网站 | 亚洲伦理一区二区 | 91九色免费视频 | 日韩专区在线播放 | 欧美另类网站 | 欧美性色黄大片在线观看 | 天天射综合网视频 | 亚洲精品美女久久17c | 欧美aa级 | www.av免费观看 | 五月婷在线观看 | 人人看人人| 精品96久久久久久中文字幕无 | 国产97在线视频 | 夜色资源站国产www在线视频 | 久久露脸国产精品 | 亚洲精品在线国产 | 欧美日韩精品综合 | 在线观看日韩国产 | 欧美一级电影片 | 视频1区2区| 久久国产精品视频免费看 | 国产免费观看久久 | 国产精品成人av在线 | 91x色| 国产小视频在线免费观看视频 | 波多野结衣一区二区三区中文字幕 | 狠狠色狠狠色综合系列 | 人人插人人费 | 精品国产_亚洲人成在线 | 亚洲一区二区三区在线看 | 日韩在线视频在线观看 | 日韩欧美视频一区二区 | 黄色一级在线视频 | 日韩精品一区二区三区在线视频 | 日本激情视频中文字幕 | 国产精品成人一区二区 | 久久久久 免费视频 | 欧美视屏一区二区 |