|
|
|
|
|
- Overview
- Displaying an image in an Image Editor control
- Getting the image displayed in the Image Editor control
- WLanguage properties of Mobile Image Editor controls
Manipulating Mobile Image Editor controls programmatically
WINDEV Mobile allows you to programmatically manipulate Mobile Image Editor controls. You can handle the image displayed in the Mobile Image Editor control using the variable that represents the control. Displaying an image in an Image Editor control To display an image, simply assign it to the Image Editor control. You can use a file name or a variable of type Image. For example: - direct assignment:
IE_MyImage = "C:\Temp\MyImage.gif"
- assignment using a variable:
ImagePath = fCurrentDir() + "\MyImage.gif"
IE_MyImage = ImagePath
- assignment using a variable of type Image:
MyImage is Image
MyImage.Width = 500
MyImage.Height = 100
MyImage = dLoadImage("image.png")
dStartDrawing(MyImage)
dFont("Arial", 12, iNormal, 0)
dText(4, 0, "Text in an Image control!")
dEndDrawing(MyImage)
IE_MyImage = MyImage
Note: A mobile Image Editor control can also be initialized from a Buffer or Text variable containing the image value in binary.
Getting the image displayed in the Image Editor control The image displayed and handled in the Image Editor control can be retrieved in a variable of type Image. For example: MyEditedImage is Image
MyEditedImage = IE_MyImage
Note: The recovered image contains only the modifications validated by the user.. Any ongoing changes that have not yet been validated will be ignored in the returned Image variable. WLanguage properties of Mobile Image Editor controls
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|