Save canvas as image to the picture library using c#,xaml in windows 8.1
Hi everyone,
I am developing a small paint application in that I am using canvas as a drawing area. Now I need to save that drawing as an image to the picture library.
How can I do this?
Please help me.
Thanks in advance
Use RenderTargetBitmap to render your Canvas into a bitmap. Use BitmapEncoder to encode the bitmap as a JPG or png, then save it our with a StorageFile.
See the sample at
http://code.msdn.microsoft.com/windowsapps/XAML-render-to-bitmap-dd4f549f
Similar Messages
-
Single Image from the Picture Library
Hi All - I am trying to display single image from a picture library. I thought it is the simplest task of all to do in SharePoint. I am having hard time. The Picture Library List View Webpart is not displaying single image (created a view that will bring
last updated image) on the blank webpage page. Then I tried the (new in 2013) Picture Library Slideshow Webpart. I set the List and View. It is still showing slideshow. Why is it showing slideshow if the view is pulling only single image. When I browse the
Picture Library and its Single Image View (that I created to filter and show only last updated one), the view page is showing single image. I need to show this single image on the Webpart page. Could anybody please guide me what am i doing wrong?
Regards,
Khushi
KhushiJust wondering, if your requirement is just to display an image using a webpart, have you tried a content editor webpart?
Thanks, Ransher Singh, MCP, MCTS | Click Vote As Helpful if you think that post is helpful in responding your question click Mark As Answer, if you think that this is your answer for your question. -
How do I save photos from email to the photo library?
How do I save photos from email to the photo library? I've seen an online demo of users that hold their finger or thumb over the image for a few seconds and a "save photo" window option appears. That doesn't work on my 6-month old iphone. It's version 1.1.4 (4a102) ???? Help! Anybody with an answer?
Never mind. I figured out the 2.0 update. My system wasn't updating I-tunes...and the I-phone update option window was hidden behind some other system information. I figured it out. The download, install and re-synch took about an hour. Lots of horror stories out there about people trying to activate their new I-phones. Glad this worked for me!
-
Hi all,
My client would like to dynamic images up to 200 pictures to my forms. It is working fine. However, when I add images up to 35 images. I could not add images to the form any more. Then, I save data on the form. All images and data typed on the form are disappeared. I don't know reason.
If I only add 10 images - I can save data and images on the form. The size of pdf is 15456 kb. I was unable to add more pictures or data on the form.
Maybe there are problem the size of pdf? How much size can an dynamic pdf limited?
Can we save the information and images as much as we want?
I have spent 2 weeks to work and try to figure out this problem. However it is not successful.
Please help,
CindyYou should ensure, that your users do not import big images.
Therefore you can use a script on the change event of an image field which checks the data size and warns the user if the file is too big.
function formatNumber(number) {
var num = number + '',
x = num.split('.'),
x1 = x[0],
x2 = x.length > 1 ? '.' + x[1] : '',
rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, '$1' + ',' + '$2');
return x1 + x2 + "KB";
var sizeLimit = 200, //allow upto 200KB images
thisSize = Math.round((this.value.oneOfChild.value.length * 3 / 4) / 1024);
if (sizeLimit > 0) {
if (thisSize > sizeLimit) {
xfa.host.messageBox("Note: With " + formatNumber(thisSize) + " the size of the imported image is greater that the recommended maximum of " + formatNumber(sizeLimit) + ".\nLarge images can cause a insufficent performance.\n\nIf possible, use images with the following recommended specs:\nFormat:\t\tPNG or JPG\nColor depth:\t8 Bit (higher is not supported)\nColor space:\tRGB (CMYK is not supported)\nFile Size:\t\t" + formatNumber(sizeLimit), "Recommended image size exceeded", 3, 0); -
Some clips have no more images in the events library
Hello,
Sorry for my english, I am French.
Some clips have no more images in the events library. The image appears only when I am on it. Do you know why ? I think this is a bug, very annoying.
Thank you by advance,
Best,Didier Rykner wrote:
What means "deleting preferences" ?
The preferences you set in Final Cut Pro->Preferences (like whether to use proxy, etc) are kept in some specific files in your mac.
This is common for all programs.
Sometimes these files become corrupt. When that happens often the program behaves badly, sometimes in completely unexpected ways.
Deleting them makes FCP X create new clean versions, and if this corruption was the cause, your problems may be fixed. Note that this does not in any way alter FCP X or your projects, so it is completely harmless, even if it does not solve anything.
The easiest way to delete preferences is to download and use Preference Manager, which is free from Digital Rebellion. -
Images in the shared library not loaded in the application EAR
The images in the shared library are not getting loaded in the application EAR deployed in the weblogic server.
I have a portal web project, which is deployed in the server, as a shared library. I'm using this shared library in my application EAR. All the details like the portlets, look and feel elements are loaded. But the images are not displayed when I run my application. Please help!!
Can it be a problem with the context path specified or something else?Hello,
It is most likely an issue with how your portlets are creating the URLs to the images. What kind of portlets are you using (JPF, JSF, JSR168, Struts, JSP)? And how are you generating the URLs to the images?
Kevin -
I am going through my only library now and trying to better organize everything. I am grouping my images into projects by year then cleaning up each year. As I finish a year I use the Export to New Library option to create a library for each year. My question is when I do this and I tell it to Consolidate Masters into exported library does it create copies of the images in the new library as well as leaving a copy in the original library? My goal once I get this completed is to delete the original library but I certainly don't want to lose any of my images. Just looking at file sizes for the libraries I can see that the main library never gets smaller and the new libraries don't really seem large enough to contain everything.
Thanks.To be honest a 6 year old machine with 4gb of memory and 300gb of disk running Lion and Aperture is not going to give you the greatest performance no matter how you split the library.
You're going to need more disk, What's your backup procedure now? The best performance will be had by getting an external disk putting the masters on it as referenced and having the library on the internal drive.
More memory would be nice but a 6 year old iMac, I think, is maxed out at 4. You'll need to keep other programs running to a minimum when you're working with Aperture.
How much free space is on the internal drive? That will be an issue also. If even with the masters relocated to an external drive cause the internal drive to fill up you'll need to move the library off the internal. If you do that you'll want to go with a FW drive. As long as only the masters are on the external you can get by with a USB but once the library goes out there you're really want to look at FW.
Hope this helps, post back if you have more questions
regards -
Moving Photos from IPhoto to the Picture Library
I'm a heavy IPhoto user and have over 9000 photos in it. The main reason I moved to IPhoto8 was its greater capacity. But I now find that IPhoto runs much more slowly and I constantly need to close IPhoto and start again. Before I add the thousand or so photos from our recent travels, I would like to move some of these photos out of IPhoto into my Photo Library on my Imac. Is this the best way to free up capacity? If so, how do I do it? I'd also appreciate any other hints on managing IPhoto capacity. Would adding extra RAM make a real difference? (I already have 1GB of Memory on my Imac.) Apologies if these are obvious questions.......
Essentially, I'm trying to find a way to avoid having IPhoto slow to the point of stopping while I'm working on my photos. When this happens, I close IPhoto and start again. This works fine, until the program slows and stops the next time.
The problem has only arisen since I have had between 8000-9000 photos on IPhoto8 (Initially I used the previous version and upgraded to IPhoto 8 to gain additional capacity). Most photos have been adjusted (exposure, cropping enhanced etc) and I've usually added titles and other details. I was surprised when this problem occurred, as I knew that capacity shouldn't be a problem with IPhoto8.
I have only used about half my available disk space, so that isn't the problem. This is why I thought of increasing the RAM.
Can I delete photos from IPhotos and retain them in the Picture Library? In the short term, this seems to be a possible "work around".
Any other suggestions? -
I mostly work on Mac desktop, but use a Macbook Pro on trips. Due to limited HD space on the latter, I want to create a library of part of the images on the Mac, to be used on the Macbook. I do not however want to remove these images from the Mac library.
Choose one or more Projects, and then use Export as New Library (from File). The resulting export will be a fully functioning Aperture Library to either transfer and open on the Macbook Pro, or to Import into a library you already have on the MBP.
Ernie -
How can I access the iphoto library using windows pc? Upgrading to aperture solves my problem?
My home network is used both by my macbook and my wife's windows pc. Considering that, I would like to know if we can share our pictures with each other (specially because I intend to store all of them into a NAS storage - WD My Cloud, probably).No you can not - neither iPhoto nor Aperture has any cross platform capability
You can share photos with the PC using MyPhotoStream or Shared PhotoStreames
You can not share the iPhoto library
And you can not put the iPHoto library on a NAS - it MUST always be on a volume formatted Mac OS extended (journaled) and mube on a fast wired local connection - it can not be on a Network
There are Digital Asset Managers that can do what you want - iPhoto and Aperture can not
LN -
How do I stop pop up that asks me, Do you want to save changes to doc... before closing? I have made no changes only printed the file. Using Adobe Reader DC, Windows 7 64 bit.
This is very annoying and we need this stopped as we have made no changes to any of the adobe files. Please advise how to do this.
Customer Service DCCI first tried the version without the deflated stream (so everything uncompressed) against the online repair tool to check/analyse it @ https://www.pdf-tools.com/osa/repair.aspx
And it says no error found, but the reader still want to save it when closing so i still had no clue at this point.
Fortunately, i finally found what was wrong with my generated PDF.
In my xref table, each object reference was not end by a full EOL, i only did put a newline char.
Now i have "carriage return" "newline" which is the full EOL and the reader is happy and close the file silently.
As suspected i did not follow correctly the specs on xref table
Now i'll go and figure what i did wrong with the deflate filter
Thanks for your help. -
I have coloured vertical lines about a quarter of the way from the left of the picture when using my apple tv 2. Anyone got any idea what is causing it. Have done a reset but still same. ATV2 is only a month old.
Just to make sure, try a different set of cables. If the problem persists, have the unit replaced by Apple.
-
Can allication reffer the shared library using STL?
I want to make the shared library which using STL, and make application using this liblary.
I suceed making shared liblary which using STL, but failed to building allication program. The error message is following ...
/opt/SUNWspro/bin/CC -Kpic -g -mt -V -D_REENTRANT -DFSUN -D_DEBUG -I/export/home/efm/kawaha/EFCFEnv/include -o ./TestDriver.exe SampleDriver.cpp -L/export/home/efm/kawaha/EFCFEnv/lib -L/usr/j2se/jre/lib/sparc/server/ -L/opt/SUNWspro/lib -L/opt/SUNWspro/WS6U1/lib -lhtefcfenv -L/usr/j2se/jre/lib/sparc/server/
CC: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11
ccfe: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11
CClink: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11
CC: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11
/opt/SUNWspro/bin/../WS6U1/bin/c++filt: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11
ld: Software Generation Utilities - Solaris-ELF (4.0)
Undefined first referenced symbol in file
__type_1 std::copy<EFCFMapValue**,EFCFMapValue**>(__type_0,__type_0,__type_1) /export/home/efm/kawaha/EFCFEnv/lib/libhtefcfenv.so
unsigned __rwstd::__rb_tree<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::pair<const std::basic_string<char,std::char_traits<char>,std::allocator<char> >,EFCFMapValue*>,__rwstd::__select1st<std::pair<const std::basic_string<char,std::char_traits<char>,std::allocator<char> >,EFCFMapValue*>,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >,std::allocator<std::pair<const std::basic_string<char,std::char_traits<char>,std::allocator<char> >,EFCFMapValue*> > >::count(const std::basic_string<char,std::char_traits<char>,std::allocator<char> >&)const /export/home/efm/kawaha/EFCFEnv/lib/libhtefcfenv.so
ld: fatal: Symbol referencing errors. No output written to ./TestDriver.exe
*** Error code 1
make: Fatal error: Command failed for target `TestDriver.exe'
Instanciated symble exit SunWS_cache. I did not know that how application to reffer this symbol.
Can the applicaton reffer the shared library using STL?
or
Can the applicaton reffer the static library using STL?
MihokoIt seems in ur application,u use STL,but not include the STL header files,just include the right STL header files and "usring namespace std;" in ur application,i think will solve ur problem.
-
Want to store and retrived images in the BFILE format using inter media
I want to store and retrived images in the BFILE format using inter media.I found a article in the oracle site that Oracle interMedia image supports BFILEs.But this article is not demonstrating the use of BFILEs.Please help me to findout the solution.
Thanks in advance.
nullThe advantage to using BFILE storage for your is that it's an easy way for Oracle
Multimedia to access your images without importing them into the database.
The disadvantages are that the images are read-only. If you want to scale an image or
convert to a different format, you will need to create a destination image to hold the result. This
will necessarily be a BLOB based image.
Adding images is difficult to do from within an application program. Generally you would add new images to a file system that is accessible to the Oracle Database, then insert new rows in your table with appropriate BFILE pointers to the new images.
BFILE images require separate backup from the database. Also there is not way to transactionally coordinate your BFILE data with your relational data.
If you are using Oracle 11g, you can use the SecureFile option for BLOB storage. This is much faster then the previous BLOB storage (now called BasicFile) and much faster then BFILE also.
That said, below is a code snippet that shows how to insert a BFILE based image, set it's properties, show it's properties and select the BFILE locator to access the content. You would need to use the DBMS_LOB package (in PL/SQL) to read the content. From other APIs, (e.g., Java) you would need to use the proper interfaces to access the BFILE.
Note that you need change the USER, PASSWORD fields in the code. Also you should change the directory location and image name for your use.
-- create a directory object indicating where the images are stored;
create or replace directory imgdir as '/tmp';
-- and grant permission to read to a user;
grant read on directory imgdir to <USER>;
conn <USER>/<PASSWORD>;
-- create the images table
create table images(id integer primary key, image ordsys.ordimage);
set serveroutput on
declare
obj ordsys.ordimage;
begin
-- use the init('FILE', <SRC_LOCATION>, <SRC_FILE>) function
-- to create an ORDIMAGE object with a BFILE source
insert into images(id, image)
values(1, ordimage.init('FILE', 'IMGDIR', 'wizard.jpg'))
returning image into obj;
-- lets see if the image source is local or not
if(obj.isLocal()) then
dbms_output.put_line('image source is local');
else
dbms_output.put_line('image source is NOT local');
end if;
-- set the properties of the image object
obj.setProperties();
-- and update the row
update images set image=obj where id=1;
commit;
end;
column height format 99999
column width format 99999
column mimetype format a30
column length format 999999
-- let's see what we have
select t.image.getHeight() as "height"
, t.image.getWidth() as "width"
, t.image.getMimetype() as "mimetype"
, t.image.getContentLength() as "length"
from images t
-- fetch a BFILE handle to the content
declare
bf BFILE;
length number;
begin
select t.image.getBfile() into bf
from images t
where t.id=1;
-- use the DBMS_LOB interface to find out size of image
length := dbms_lob.getLength(bf);
dbms_output.put_line('length of BFILE is ' || length);
end;
---What we get when we run the code
Connected.
Directory created.
Connected.
Table created.
image source is NOT local
PL/SQL procedure successfully completed.
height width mimetype length
399 485 image/jpeg 92552
length of BFILE is 92552
PL/SQL procedure successfully completed.
SQL> -
How do I send email with pictures attached, using PSE 9 and Windows 7 ?
How do I send email with pictures attached, using PSE 9 and Windows 7 ?
Try email attachment workflow in Organizer. http://tv.adobe.com/watch/learn-photoshop-elements-9/sharing-your-images-via-email/
Thanks
Andaleeb
Maybe you are looking for
-
I want to give my old iPhone 4 to my grandson to use like an iPod Touch. Wifi only. How do I deactivate my info..so he can buy his own apps. and not have the cloud pushing all of my data to my old phone? Just turning off Cloud will not prevent him fr
-
How to Read a file using File Adapter without polling
In My process I want to be able to read a specific file. But without polling for files? Can I use the File Adapter for this? Thanks JO
-
Problem with refund ( chat doesn't work )
Hi, I tried to requst a refund. I followed to instruction https://support.skype.com/en/faq/FA297/how-do-i-request-a-refund . But on step 3 I didn't find option "Email support", only "Text chat support" or link to this forum. And chat does't work,
-
Strange unmarshalling exception when starting RMI server
I've run into a strange problem when running my RMI server. It worked fine yesterday, though I made a few changes since then, none of those changes should cause this to happen, as far as I know. Here's the exception: java.rmi.ServerException: RemoteE
-
Items duplicating in purchased folder iphone side not computer
I've messaged in about this about 4 times before but no one seems to ever reply or know what is going on. I have a very weird problem in that every time I upgrade the software on my iPhone or restore it from a backup 22 songs are duplicated in the pu