Method UploadPromoScreen
UploadPromoScreen(String, Int32, DisplayOrientation, Int32)
Uploads a promoscreen, that is, an image to be shown in customer logo mode.
Declaration
Error UploadPromoScreen(string file, int number, DisplayOrientation orientation, int screenTime)
Parameters
Type | Name | Description |
---|---|---|
System.String | file | The image file to read from. Supported formats include bmp, png, jpeg. |
System.Int32 | number | The index of the image in the image sequence. |
DisplayOrientation | orientation | The orientation. Only used if the device can switch to portrait mode. |
System.Int32 | screenTime | The display time for this screen in s. |
Returns
Type | Description |
---|---|
Error | Error |
Remarks
The customer logo mode shows a numbered sequence of images (promoscreens). The images for that sequence images can be uploaded with this function. The numbering for the screens goes from 1 to 10.
If the device supports switching to portrait mode (see PortraitModeSupport), it stores two separate image sequences. One for landscape mode and another for portrait orientation (DEG_90, DEG_270) Set the DisplayOrientation for running the customer loo mode in portrait orientation,
Examples
This example loads three images, the first screen is to be shown for 10 seconds, the other two for 15 seconds. Then, the device is set to customer logo mode by a call to SetCustomerLogoMode()
C#
Error r = driver.UploadPromoScreen("companyLogo.png", 1, Orientation.DEG_0, 10);
r = driver.UploadPromoScreen("screen2.png", 2, Orientation.DEG_0, 15);
r = driver.UploadPromoScreen("screen3.png", 3, Orientation.DEG_0, 15);
r = driver.SetCustomerLogoMode();
VB.NET
Dim r As [Error] = driver.UploadPromoScreen("companyLogo.png", 1, Orientation.DEG_0, 10)
r = driver.UploadPromoScreen("screen2.png", 2, Orientation.DEG_0, 15)
r = driver.UploadPromoScreen("screen3.png", 3, Orientation.DEG_0, 15)
r = driver.SetCustomerLogoMode()
The next example runs the customer logo mode in portrait orientation quietly assuming portrait support.
C#
DisplayOrientation orientation = DisplayOrientation.DEG_270;
Error r = driver.UploadPromoScreen("portrait1.png", 1, orientation, 4);
r = driver.UploadPromoScreen("portrait2.png", 2, orientation, 4);
driver.DeviceProperties.Status.DisplayOrientation = orientation;
r = driver.SetCustomerLogoMode();