str filename;
FileNameFilter filter = ['JPG files','*.jpg'];
Bindata binData;
Image signatureImage = new Image();
super();
filename = Winapi::getOpenFileName(element.hWnd(), filter, '', "Upload your image", '', '');
binData = new BinData();
if (binData.loadFile(filename))
{
signatureImage = binData.getData();
FormWindowCOntrol.image(signatureImage);
FormWindowCOntrol.widthValue(signatureImage.width());
FormWindowCOntrol.heightValue(signatureImage.height());
element.resetSize();
element.unLock();
}
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.