Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4020772
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:16:11+00:00 2026-05-20T10:16:11+00:00

I have a simple question. What do I use as a DataFormat when saving

  • 0

I have a simple question. What do I use as a DataFormat when saving a png to the clipboard.

An example that works for Bitmaps is:

DataObject data = new DataObject();
data.SetData(DataFormats.Bitmap, customObject.ToImage(ImageFormat.Bmp));
Clipboard.SetDataObject(data);

My problem:

DataObject data = new DataObject();
data.SetData(DataFormats.**???**, customObject.ToImage(ImageFormat.Png));
Clipboard.SetDataObject(data);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:16:12+00:00Added an answer on May 20, 2026 at 10:16 am

    You can register any serializable type with the clipboard provider:

            Image image = Image.FromFile(@"D:\Documents\Projects\....\myimage.png");
            DataFormat format = DataFormats.GetDataFormat(typeof (Image).FullName);
    
            IDataObject dataObj = new DataObject();
            dataObj.SetData(format.Name, image);
    
            Clipboard.SetDataObject(dataObj);
    
            IDataObject clipboardObj = Clipboard.GetDataObject();
            Image clipboardImage = (Image)clipboardObj.GetData(format.Name);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

New to Python, have a simple, situational question: Trying to use BeautifulSoup to parse
I have a simple question: Would you rather use a plugin that is actively
I have a simple question that which method is best and why ? Use
greetings, i have a simple question. I have some page that i use for
I have a simple question that boggles me. I am trying to use the
I'm new to Java so I have a simple question that I don't know
I have a simple question: if I use URLConnection.setUseCaches(true) when loading something from web,
i have a simple question. if i use play.db.ebean.Model to have my Model extend
Have a rather simple question. Does anyone knows if i can use jparallax both
I have a (hopefully) simple question. Is it possible to use SSHD tunneling to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.