???/* * Copyright 2012 ZXing.Net authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ using System; using ZXing.Common; using ZXing.PDF417.Internal; namespace ZXing.PDF417 { /// /// The class holds the available options for the /// [Serializable] public class PDF417EncodingOptions : EncodingOptions { /// /// Specifies whether to use compact mode for PDF417 (type ). /// public bool Compact { get { if (Hints.ContainsKey(EncodeHintType.PDF417_COMPACT)) { return (bool)Hints[EncodeHintType.PDF417_COMPACT]; } return false; } set { Hints[EncodeHintType.PDF417_COMPACT] = value; } } /// /// Specifies what compaction mode to use for PDF417 (type /// ). /// public Compaction Compaction { get { if (Hints.ContainsKey(EncodeHintType.PDF417_COMPACTION)) { return (Compaction)Hints[EncodeHintType.PDF417_COMPACTION]; } return Compaction.AUTO; } set { Hints[EncodeHintType.PDF417_COMPACTION] = value; } } /// /// Specifies the minimum and maximum number of rows and columns for PDF417 (type /// ). /// public Dimensions Dimensions { get { if (Hints.ContainsKey(EncodeHintType.PDF417_DIMENSIONS)) { return (Dimensions)Hints[EncodeHintType.PDF417_DIMENSIONS]; } return null; } set { Hints[EncodeHintType.PDF417_DIMENSIONS] = value; } } } }