Method SetContinuousScrollMode
SetContinuousScrollMode(Int32, Int32, Int32, Int32, String, Int32, Int32)
Sets the device to the continuous scroll mode.
Declaration
public Error SetContinuousScrollMode(int numberOfPages, int numberOfTiles, int startTileNumber, int startTileOffset, string buttonText, int tileWidth, int tileHeight = 702)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | numberOfPages | The number of pages of the document. |
System.Int32 | numberOfTiles | The number of tiles the document is to be split up into. |
System.Int32 | startTileNumber | This tile number is requested first. |
System.Int32 | startTileOffset | Scrolls the first tile down. |
System.String | buttonText | The text inside the button. |
System.Int32 | tileWidth | The width of a tile /pixels. Recommended width: 992. |
System.Int32 | tileHeight | The height of a tile /pixels. Recommended height: 702. |
Returns
Type | Description |
---|---|
Error | Error |
Implements
Remarks
The continuous scroll mode is used for viewing multipage documents split up into several tiles. These tiles form a vertical stack of the document that can be scrolled with the pen.
When started, the device is requesting tiles through the ScrollEvent.
The device will never request for tile numbers bigger than the total numberOfTiles
.
When one is scrolling fast the device is asking for a tile that corresponds to a page number. Then IsPageNumber is true and you have to determine the corresponding tile number for that page number and set it with
SetContinuousScrollTileNumber(Int32, Int32, Int32).
These tile requests have to be fulfilled by uploading tiles by means of
UploadContinuousScrollTile(Bitmap, Int32, Int32, Int32)
The mode has one button labeled with the buttonText
.
Clicking it triggers a ButtonEvent while
the device shows an hourglass and waits for further commands.
Whether a device supports the continuous scroll feature can be queried with DeviceProperties.IFeatures.ContinuousScrollingSupport.