简体   繁体   中英

Adding an image to a google drawing using c#

I'm using the .NET client library and c# to try and add an image to a google drawing programmatically. I know I can upload a file and google can convert it to a drawing for me as explained here , but the only MIME type supported is .wmf and I need to upload a .jpg or other non-vector image file.

I don't need the drawing to be converted from a .jpg or anything; I simply want the same functionality as opening a new drawing and clicking on the image button to upload an image. Any ideas on how to accomplish this? Thanks.

为了完整起见,我要说的是,对于当前的API,这似乎是不可能的。

Drawing expects vector data, hence .wmf. You want to create a new document with an image in it.

This looks like a useful thread for your issue:

http://groups.google.com/group/google-documents-list-api/browse_thread/thread/0b50568304867b00/4ac28bda87889e8a?pli=1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM