PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV, WEBDEV and WINDEV Mobile 26 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
CoordinateImageControlToImage (Function)
In french: CoordonnéeChampImageVersImage
Converts the coordinates of a rectangle in the Image control to the corresponding coordinates in the image displayed in the control. This function is used to match the coordinates in the Image control with the coordinates in the source image.
Example
// Load image for OCR
ImageForOCR is Image = dLoadImage(MyImage)
// Display a thumbnail of the image in the control.
IMG_Thumbnail = ImageForOCR
 
// (Interactive) selection of the area on which to perform OCR.
// ...
 
// Convert selected coordinates to coordinates in the source image
let ImageSelection = CoordinateImageControlToImage(IMG_Thumbnail, ImageControlSelection)
// Perform OCR on the source image (= without quality loss) with this rectangle
let sText = OCRExtractText(ImageForOCR, ImageSelection)
Syntax
<Result> = CoordinateImageControlToImage(<Image control> , <Coordinates to convert>)
<Result>: Rectangle variable
Rectangle variable that corresponds to the rectangle in relation to the displayed image.
<Image control>: Control name
Image control used.
<Coordinates to convert>: Rectangle variable
Name of the Rectangle variable that corresponds to the rectangle in relation to the Image control.
Remarks
  • The conversion takes into account the display mode of the image.
  • The function is ignored if the displayed image is repeated.
Component : wd260page obj.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment