{"id":1361,"date":"2009-10-26T11:16:06","date_gmt":"2009-10-26T11:16:06","guid":{"rendered":"http:\/\/www.bardecode.com\/en1\/?p=1361"},"modified":"2013-02-12T11:16:33","modified_gmt":"2013-02-12T11:16:33","slug":"getbarstringdirection-retrieve-the-orientation-of-a-barcode","status":"publish","type":"post","link":"https:\/\/www.bardecode.com\/en1\/getbarstringdirection-retrieve-the-orientation-of-a-barcode\/","title":{"rendered":"GetBarStringDirection &#8211; retrieve the orientation of a barcode"},"content":{"rendered":"<p><strong><strong>Syntax<\/strong><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>.net\/java\/ocx:\u00a0Object.<strong>GetBarStringDirection<\/strong>(n)<br \/>\ncom:\u00a0Object.<strong>BarStringDirection<\/strong>(n)<br \/>\ndll:\u00a0<strong>mtGetBarStringDirection<\/strong>(hBarcode, n)<\/strong><\/p>\n<p><strong><strong>Parameters<\/strong><\/strong><\/p>\n<p><strong>hBarcode\u00a0Handle to an instance of the barcode toolkit (dll only).<br \/>\nn\u00a01-based index to barcode to be queried.<\/strong><\/p>\n<p><strong><strong>Return Value<\/strong><\/strong><\/p>\n<p><strong>1 = Left to Right<\/strong><\/p>\n<p><strong>2 = Top to Bottom<\/strong><\/p>\n<p><strong>4 = Right to Left<\/strong><\/p>\n<p><strong>8 = Bottom to Top<\/strong><\/p>\n<p><strong>16 = Top Left to Bottom Right<\/strong><\/p>\n<p><strong>32 = Top Right to Bottom Left<\/strong><\/p>\n<p><strong>64 = Bottom Right to Top Left<\/strong><\/p>\n<p><strong>128 = Bottom Left to Top Right<\/strong><\/p>\n<p><strong><strong>Remarks:<\/strong><\/strong><\/p>\n<p><strong>Call GetBarStringDirection after calling ScanBarCode to determine the orientations of barcode found in a document.<\/strong><\/p>\n<p><strong><strong>Win32 dll declarations:<\/strong><\/strong><\/p>\n<p><strong><strong>VB.Net:<\/strong><\/strong><\/p>\n<p><strong>Private Declare Function mtGetBarStringDirection Lib &#8220;SoftekBarcode&#8221; (ByVal hBarcode As System.IntPtr, ByVal nBarCode As Short) As Short<\/strong><\/p>\n<p><strong><br \/>\n<strong>Visual C++:<\/strong><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>extern &#8220;C&#8221; {<br \/>\nshort __stdcall mtGetBarStringDirection(HANDLE hBarcode, short nBarCode) ;<\/strong><\/p>\n<p><strong>}<\/strong><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Syntax &nbsp; .net\/java\/ocx:\u00a0Object.GetBarStringDirection(n) com:\u00a0Object.BarStringDirection(n) dll:\u00a0mtGetBarStringDirection(hBarcode, n) Parameters hBarcode\u00a0Handle to an instance of the barcode toolkit (dll only). n\u00a01-based index to barcode to be queried. Return Value 1 = Left to Right 2 = Top to Bottom 4 = Right to Left 8 = Bottom to Top 16 = Top Left to Bottom Right 32 =<\/p>\n<p><a href=\"https:\/\/www.bardecode.com\/en1\/getbarstringdirection-retrieve-the-orientation-of-a-barcode\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[236,18],"tags":[],"class_list":["post-1361","post","type-post","status-publish","format-standard","hentry","category-documentation-for-our-toolkits-and-applications","category-knowledge-base"],"_links":{"self":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts\/1361"}],"collection":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/comments?post=1361"}],"version-history":[{"count":1,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts\/1361\/revisions"}],"predecessor-version":[{"id":1362,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts\/1361\/revisions\/1362"}],"wp:attachment":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/media?parent=1361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/categories?post=1361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/tags?post=1361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}