ページ上の座標を識別する関数があり、それらを
Dictionary<int, Collection<Rectangle>> GetDocumentCoordinates(int DocumentId)
ただし、後で各ページに関する情報が必要になります。検証された場合、ページの解像度、色/bw などです。別の関数を作成し、前の関数とほぼ同じ結果セットを実行して、その情報を取得できます。
Dictionary<int, PageInfo> GetDocumentAttributes(int DocumentId)
もう 1 つの方法は、ref
これらの値を取得できるようにパラメーターを追加することです。
Dictionary<int, Collection<Rectangle>> GetCoordinates(int DocumentId, ref Dictionary<int, PageInfo> PageAttributes)
さらに別の方法として、Dictionary とページ情報を含む包括的なクラスを作成する方法があります。
class DocumentInfo
{
Dictionary<int, Collection<Rectangle>> Coordinates { get; set;}
Dictionary<int, PageInfo> PageAttributes { get; set; }
}
次に定義します。
DocumentInfo GetDocumentInfo(int DocumentId);
私は最後のオプションに傾いていますが、あなたの洞察は非常に高く評価されています.