|
|
|
|
- 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
Handling Mobile Image Editor controls programmatically
WINDEV Mobile allows you to programmatically handle 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 // Load from a file MyImage = dLoadImage("image.png") // Draw in the image dStartDrawing(MyImage) // Write a text dFont("Arial", 12, iNormal, 0) dText(4, 0, "Text in an Image control!") // End of drawing dEndDrawing(MyImage) Â // Assignment to a Mobile Image Editor control IE_MyImage = MyImage
Remark: A Mobile Image control can also be initialized from a Buffer or Text variable containing the value of the image in binary format.
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 Remark: The retrieved image contains only the changes 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|