painting without controls
Posted: Fri Aug 07, 2009 12:20 pm
by johnmunro >> Mon, 20 Jan 2003 10:57:37 GMT
Our application needs to do image processing without a user interface, for example, painting a picture on another picture without there being any forms or controls involved.
There are two things preventing us from doing this. First of all, if we call drawPictureAt on a transient instance of Picture, we get a "window not created" exception. Secondly, these transient instances do not resize themselves to the size of the picture being placed on them (when the stretch property is set to ControlToPicture). We need to know the dimensions of the pictures in order to position them correctly.
Shouldn't it be possible to do this using just GDI API calls?
John Munro
---
Synergist Limited - Home of FileVision
The Bioscience Innovation Centre
Cowley Road, Cambridge, UK
CB4 0DS
Telephone: +44 (0) 1223 478200
Fax: +44 (0) 1223 477969
Email: john.munro@filevision.com
Web: http://www.filevision.com
The contents of this communication are confidential and are only intended to be read by the addressee. We apologize if you receive this communication in error and ask that you contact Synergist Limited immediately to arrange for its return. The use of any information contained in this communication by an unauthorized person is strictly prohibited. Synergist Limited cannot accept responsibility for the accuracy or completeness of this communication as it is being transmitted over a public network. If you suspect this message may have been intercepted or amended, please inform Synergist Limited.
Our application needs to do image processing without a user interface, for example, painting a picture on another picture without there being any forms or controls involved.
There are two things preventing us from doing this. First of all, if we call drawPictureAt on a transient instance of Picture, we get a "window not created" exception. Secondly, these transient instances do not resize themselves to the size of the picture being placed on them (when the stretch property is set to ControlToPicture). We need to know the dimensions of the pictures in order to position them correctly.
Shouldn't it be possible to do this using just GDI API calls?
John Munro
---
Synergist Limited - Home of FileVision
The Bioscience Innovation Centre
Cowley Road, Cambridge, UK
CB4 0DS
Telephone: +44 (0) 1223 478200
Fax: +44 (0) 1223 477969
Email: john.munro@filevision.com
Web: http://www.filevision.com
The contents of this communication are confidential and are only intended to be read by the addressee. We apologize if you receive this communication in error and ask that you contact Synergist Limited immediately to arrange for its return. The use of any information contained in this communication by an unauthorized person is strictly prohibited. Synergist Limited cannot accept responsibility for the accuracy or completeness of this communication as it is being transmitted over a public network. If you suspect this message may have been intercepted or amended, please inform Synergist Limited.