public void WriteFrames() { uint bgColor = ((WicGifContainer)ctx.ImageContainer).BackgroundColor; writeFrame(Current); while (moveNext()) { TemporalFilters.Dedupe(this, bgColor); writeFrame(Current); } }
private void ReadFieldValuesFromXmlDoc(XsdNs.GetObservationType requestObjectRaw) { // Reading features of interest if (requestObjectRaw.featureOfInterest != null && requestObjectRaw.featureOfInterest.Length > 0) { FeaturesOfInterest = new HashSet <string>(requestObjectRaw.featureOfInterest); } // Reading observed properties if (requestObjectRaw.observedProperty != null && requestObjectRaw.observedProperty.Length > 0) { ObservedProperties = new HashSet <string>(requestObjectRaw.observedProperty); } // Reading extensions if (requestObjectRaw.extension != null) { foreach (var ext in requestObjectRaw.extension) { if (ext.GetType() != typeof(XsdNs.DataRecordPropertyType)) { throw new XNeut.InvalidMessageException("The type of the extension object is not supported: " + ext.GetType().ToString()); } var dataRecordRaw = (XsdNs.DataRecordPropertyType)ext; Items.Add(new Item_DataRecord(dataRecordRaw.DataRecord)); } } // Reading temporal filters if (requestObjectRaw.temporalFilter != null) { foreach (var filterEl in requestObjectRaw.temporalFilter) { var filterObj = new TemporalFilter(filterEl); TemporalFilters.Add(filterObj); } } }