Skip to main content

XPDF_ImageSelectionChanged

Type​

message

Summary​

Sent to the current card when the user changes the image selection

Syntax​

XPDF_ImageSelectionChanged <selectionRange>

Description​

Sent to the current card when the user changes the image selection

Parameters​

NameTypeDescription

selectionRange

A comma-delimited list of 1 integer and 4 real numbers:

  • pageNumber - The page the selection is on.
  • left - The left of the selection
  • top - The top of the selection
  • right - The right of the selection
  • bottom - The bottom of the selection

Examples​

on XPDF_SelectionChanged pSelectionRange
local theSelectedImage
XPDFViewer_GetSelectionImage "Document1", "theSelectedImage"
set the width of image "selected image" to item 1 of the result
set the height of image "selected image" to item 2 of the result
set the imageData of image "selected image" to theSelectedImage
end XPDF_SelectionChanged

Compatibility and Support​

Introduced

LiveCode 1.0.0

OS

mac

windows

Platforms

desktop

Thank you for your feedback!

Was this page helpful?