saving as jpeg to clipboard

Use the System::Windows::Forms::Clipboard class which contains static method to put and retrieve items to/from the clipboard.
Code:
  System::Windows::Forms::Clipoard::SetDataObject(yourbitmapobject, true)
The second argument specifies if the object will remain in the clipbaord after the application exits.
 
mutant said:
Use the System::Windows::Forms::Clipboard class which contains static method to put and retrieve items to/from the clipboard.
Code:
  System::Windows::Forms::Clipoard::SetDataObject(yourbitmapobject, true)
The second argument specifies if the object will remain in the clipbaord after the application exits.
thanks for the reply, the above code is what i used, however i have an Image object not a Bitmap how do i specify that the Image is or should be treated as a bmp or jpeg etc...
 
Back
Top