/// <summary> /// Creates a TIME chunk with given date and time /// </summary> /// <param name="year">Year</param> /// <param name="mon">Month (1-12)</param> /// <param name="day">Day of month (1-31)</param> /// <param name="hour">Hour (0-23)</param> /// <param name="min">Minute (0-59)</param> /// <param name="sec">Seconds (0-59)</param> /// <returns>The created and queued chunk</returns> public PngChunkTIME SetTimeYMDHMS(int year, int mon, int day, int hour, int min, int sec) { PngChunkTIME c = new PngChunkTIME(chunkList.imageInfo); c.SetYMDHMS(year, mon, day, hour, min, sec); QueueChunk(c, true); return(c); }
public PngChunkTIME SetTimeYMDHMS(int year, int mon, int day, int hour, int min, int sec) { PngChunkTIME pngChunkTIME = new PngChunkTIME(chunkList.imageInfo); pngChunkTIME.SetYMDHMS(year, mon, day, hour, min, sec); QueueChunk(pngChunkTIME, lazyOverwrite: true); return(pngChunkTIME); }
/// <summary> /// Creates a TIME chunk with given date and time /// </summary> /// <param name="year">Year</param> /// <param name="mon">Month (1-12)</param> /// <param name="day">Day of month (1-31)</param> /// <param name="hour">Hour (0-23)</param> /// <param name="min">Minute (0-59)</param> /// <param name="sec">Seconds (0-59)</param> /// <returns>The created and queued chunk</returns> public PngChunkTIME SetTimeYMDHMS(int year, int mon, int day, int hour, int min, int sec) { PngChunkTIME c = new PngChunkTIME(chunkList.imageInfo); c.SetYMDHMS(year, mon, day, hour, min, sec); QueueChunk(c, true); return c; }