XPixelToPercent (Method) - XPixelToPercent (Method) - AnyDoc - OCR for AnyDoc - AnyDoc/OCR-for-AnyDoc/Foundation-23.1/OCR-for-AnyDoc-Programming-Reference-Guide/VBScript-Objects-Properties-and-Methods/Individual-Object-Methods/XPixelToPercent-Method - Foundation 23.1 - Foundation 23.1

OCR for AnyDoc Programming Reference Guide

Platform
AnyDoc
Product
OCR for AnyDoc
Release
Foundation 23.1
License
ft:lastPublication
2026-10-21T08:07:08.864000
ft:locale
en-US

Description

This function converts a horizontal pixel based ordinate value into a percentage using the current data image's width.

Applicable Events

AnyApp Pre-Application, AnyApp Post-Algorithm, AnyApp Post-Application

Syntax

object.XPixelToPercent(nXPixelOrdinate)

Parameters

Object is a reference to the Application object. For more information, see Application Object (page Application Object).

XPixelToPercent is the command.

nXPixelOrdinate is the X coordinate number to be converted.

Example