Wpf export graph to image problem

My problem is I have created a new custom custom using the NI wpf graph as the basis. The control consist mainly of the graph,its axes and legends on a grid. To allow the legend to be moved around, I put it in a child grid. My problem is while trying to export the control as an image I am using the code below (similar to wpf graph export to image):
Rect bounds = LayoutInformation.GetLayoutSlot(MainGrid);
var bitmap = new RenderTargetBitmap((int)bounds.Width + 1, (int)bounds.Height + 1, 96, 96, PixelFormats.Default);
bitmap.Render(MainGrid);
My problem is the axes and the edges of the image exported to clipboard is dark as shown below. Is saved to image, the edges are instead transparent but better (not visible in the photos app but visible in paint). My question is why is this behavior and how can it be avoided?
Thanks.
Solved!
Go to Solution.

I did a bit of research and it seems the dark color is due to the trasnparency of the axes and edges of the image: the clipboard in windows does not support transparent image. The question is how can this transparency be removed from the axes and edges of the image?
Thanks.

Similar Messages

  • FCP 7 exporting for DVD, Image problems

    Hey,
    New here so sorry if I'm a little slow with everything.  We shot some concert footage using 4 cameras, 3 cameras shot in 1440X1080 HDV 1080i60 and the other camera shot in AVCHD but was imported as 1440X1080 ProRes 422.  I edited the video in a sequence with settings of 1440X1080, field dominance of Upper (odd), and compressor HDV 1080i60.  I was trying to find a way to export for SD DVD in the best quality I could and found Ken Stone's site,
    http://www.kenstone.net/fcp_homepage/hdv_timeline_to_sd_dvd.html
    It's worked for me on other projects. This project is a 2 1/2 hour DVD, so I tested that method on a minute of the footage and it didn't come out well just for one camera.  I followed Ken Stone's page and took the sequence and changed the settings to field dominance None, and compressor to ProRes 422.  Then I exported using quicktime conversion with settings of ProRes 422 HQ.  Once that file is exported I've been taking it to Compressor and using either DVD Best 90 Minutes or 120 Minutes.  On the max bitrate I don't go above 7.9 and on the average I'm usually around 6.7 for Best 90 minutes and 5.2 for Best 120 minutes.  Whenever I put the footage in DVD Studio Pro, the footage from the 3 cameras shot in 1080i60 look great but the footage originally shot in AVCHD has all sorts of lines and distortion on movement.  I'm just trying to find out if there is a better way for me to take my footage from final cut to SD DVD and still get good looking footage out of the original AVCHD footage.  I don't really understand why the footage from the AVCDD footage is coming out like that since it was imported as ProRes 422.  Any ideas on how to fix this?
    Thanks,
    Matt

    Thanks a lot, this did the trick.
    Yeah I'm doing a dual layer dvd, but I'm sending it off for replication so from what I've read it sounds like I have to build and format the dvd, then burn each Layer to it's own dvd.  Do you have any experience with this?  The break point is kind of confusing me right now because it sounds like just a lot of trial and error.
    Thanks again
    Matt

  • Problem in downloading graph as image

    Hi All,
    I'm trying to download pie graph as image when click on command link, At first time working fine when im suppose to click command link again graph is not getting downloaded.... here comes code...
    <af:commandLink text="Save As Image" id="image">
    <af:fileDownloadActionListener method="#{debtors.savePieAsPNG}" contentType="image/png" filename="agedDebtorsPieChart.png"/>
    </af:commandLink>
    public void savePieAsPNG(FacesContext facesContext,
    OutputStream outputStream) {
    try {
    debtorsPie.getImageView().exportToPNG(outputStream); /* 'debtorsPie' binding used in jspx page*/
    outputStream.flush();
    catch (Exception e){
    e.printStackTrace();
    Image is not downloading more than once
    Please help on this...

    Hi All,
    I'm trying to download pie graph as image when click on command link, At first time working fine when im suppose to click command link again graph is not getting downloaded.... here comes code...
    <af:commandLink text="Save As Image" id="image">
    <af:fileDownloadActionListener method="#{debtors.savePieAsPNG}" contentType="image/png" filename="agedDebtorsPieChart.png"/>
    </af:commandLink>
    public void savePieAsPNG(FacesContext facesContext,
    OutputStream outputStream) {
    try {
    debtorsPie.getImageView().exportToPNG(outputStream); /* 'debtorsPie' binding used in jspx page*/
    outputStream.flush();
    catch (Exception e){
    e.printStackTrace();
    Image is not downloading more than once
    Please help on this...

  • My student has been using Lightroom 4 with Photoshop CS5 on her Mac for well over a year. Because of the difference between the Camera raw version available to her in Photoshop CS5 and the raw process in Lightroom 4, she has been exporting her raw images

    Any ideas?

    My student has been using Lightroom 4 with Photoshop CS5 on her Mac for well over a year. Because of the difference between the Camera raw version available to her in Photoshop CS5 and the raw process in Lightroom 4, she has been exporting her raw images from Lightroom and choosing the "Render using Lightroom option when it popped up in the dialogue box. She has been doing this for over a year and a half without any problem. Today when she hit Command E no dialogue box appeared and the image just opened in Photoshop. I'm concerned that all of her Lightroom edits are not being rendered to Photoshop. Anyone have an idea as to how we can get the "Render using Lightroom" dialogue back?

  • QT can't export 10 bit images?

    I have 10 bit uncompressed quicktime movies, from which I need to export 10 bit image sequences. When I export using either QT 7.0.2 or FCP5, I get 8 bit images. What's going on?

    Hmmmm.....Well, I'm certainly seeing the problem. But it must be more complex, and also perhaps involve CPU architectures: I imported HD DVCPRO 720p @23.98fps media from a P2 Store on a MacBook Pro using 5.1.1. Those imported Quicktime media files can not be viewed on a G4 w/ 5.0.4 but can be viewed on a G5 w/ 5.1.2. On the G4 the movie files opened at the right rez but with a blank white image (typical when the codec is missing/bad), although the audio played fine. Neither the G4 nor the G5 have an added video card.
    This is confusing because it would be simple if it was just Intel vs PowerPC, but it's not, as the G5 works but the G4 doesn't. I never had a chance to see if it will work on the G5 using 5.0.4.
    Obviously there's more to this than we'd thought.

  • Lightroom 2.7 exporting the wrong images

    Hi. I've been using Lightroom since the first beta, currently running LR2.7 on a MacBook Pro. I installed the new CS5 (Web Premium suite) a little more than a week ago, and I'm suddenly having problems exporting images to JPEG from Lightroom.
    Images import and edit correctly, look great, nothing gives me an error message. But when I try to export a single image, the first instance (after I've launched the application) will export correctly. After that, there seems to be about a 70% chance that subsequent attempts will export the wrong image. The file is correctly named, but the image will be a duplicate of the last successful export.
    If I try to export a batch of four or five, the first image will usually export correctly, sometimes the last image will export correctly, but anything in between will be a duplicate of either a previous export, or the first image.
    I assumed it was a memory issue, shut down the Mac and restarted, then opened Lightroom as the only active application. Same thing happened. I can export correctly in other applications such as Photoshop and Flash, but Lightroom won't. Activity Monitor doesn't show anything out of line for memory usage.
    When the problem started happening I was running 2.6; I upgraded to 2.7 to see if that would fix it--it doesn't.
    Any ideas? I'd rather not delete and reinstall Lightroom and rebuild my libraries if I can avoid it, especially if that might not solve the problem.
    Help!
    Thanks--
    --cynthia

    Hmmmm. I've tried various naming conventions and I'm still looking for consistency in the way the error occurs--could have something to do with naming presets, but it's acting like something gets stuck in the cache. What puzzles me is that I export files daily, haven't changed cameras, cards, file locations, my workflow is the same, and I've never had this problem. The only thing that's changed (that I'm aware of) is the installation of CS5--the error seems to have started when I started using "Edit in Photoshop." (And again, that was never a problem before)
    The files all have different names, the ones assigned by the cameras.
    This morning I rebooted, didn't launch any of the CS5 apps. Launched Lightroom, chose 7 files at random and exported them with the "filename" preset. They exported correctly. I selected them again, and tried another export, this time giving them a custom name, and they exported correctly with a sequence number attached. Tried them with "Custom Name-Sequence," and they worked again. I exported a single file with the same preset, again it exported correctly.
    Then I switched folders, selected 7 different images and exported them with a new "Custom Name-sequence," and this time Lightroom exported EIGHT files. The sixth was the previously-exported single-file, so the exporter had gotten the first 5 right, inserted the old file in the sixth position, and then correctly exported the last two.
    Three more tests exported everything correctly, which is far fewer errors than yesterday. I'm kinda stumped.

  • Imaging problem LR 2.7

    Has anyone seen this issue arise on images that were imported ok, then  all of a sudden Lightroom image rendering will only do this?
    The source file appears okay as this does not happen when viewed with  alternative viewer programs.    However, the exports usually (not  always) also look like this. 
    What is this imaging problem called?
    I've never had this issue before, but it's started to occur with  frequency ever since I've moved... only mystery is: I have all of the  same equipment including camera.

    folks thanks for all fo the advice, but... I think I've discovered the problem:  VISTA + External Hard Drive = Picture and file corruption
    I should have known: the problem is MICROSOFT!!!!!  For the first time in my life, I thought seriously about switching to Apple (but then I would switch to Aperture). 
    Here are the old discussions.  Given the dates on these, apparently, I must be a rare person left on Vista. 
    http://www.vistax64.com/vista-music-pictures-video/136646-image-corruption-using-external- drive-vista.html
    http://social.technet.microsoft.com/forums/en-US/itprovistadeployment/thread/6ffcb5b7-ac72 -49ab-9a89-77e730db75b2/
    So 3 external hard drives tested with the entire set of nearly 400 GB of pictures, videos and files.
    All showing varying degrees of picture corruption, and now I've discovered video corruption as well. 
    My problem is, I deleted the original internal hard drive files, so I'm left with only one 1st copy, the other two are copies of copies and worse off. 
    I'm taking the leap.... upgrading to Windows 7 tonight.  I'll let you know what happens. 

  • Exporting keywords with image files

    Using LR1.2 under Windows XP I now do most of my initial processing of scans and digital imports in LR before exporting the selected images for final batch processing and refined tuning in PS CS2. However, having completed copious key wording in LR, my exported files when viewed in Bridge do not contain my keywords. I have searched and found that it is possible to export metadata but that does not naturally link them with the appropriate pictures. Short of cutting and pasting chunks of keywords from LR, how can I arrange Bridge to incorporate keywords which were integral with the images exported from LR?
    Thanks in advance to wiser heads than mine.
    DA

    >I do not have a 'cache' purge' option
    I was talking about Bridge. Bridge's cache might be bad. The save metadata part in LR 1.3 is in the exact same location as in 1.2. I have never seen keywords not get written starting from LR 1.0. I know because I put lots of my images in online galleries and they always pick up my keywords.
    >As I suffered catalogue problems with my last LR upgrade
    Perhaps this is the problem. You should try with a new fresh catalog, import a few images, tag em and export them and see if you get metadata written that way. Perhaps your main catalog is still corrupt.

  • Why "Export Error Codec Initialization Problem!" when I export using Adobe Media Encorder for FLV?

    I get "Export Error - Codec Initialization Problem!" when I try to export a project using Adobe Media Encoder as a Macromeida Flash Video.  Premiere Pro 2.0 goes through the rendering process but no file is created; just the Export Error message.  What does this mean, and what do I need to do to export a project as a FLV file?
    Thanks.

    Sounds weird...  You could try the standard fix for general unexplained behaviour in a document; export it to idml, open that, save as an Indesign file and try exporting again.  If that doesn't work try a few different presets, like smallest file size.  If that doesn't work try opening your image in Photoshop, resaving as a psd, placing that (delete your old one) and see if that helps.  Obviously do this on a copy....

  • Bad interlacing & image problems?

    I've shot some interviews on our Panasonic HVX 200 in SD using the 480i 60i DVCPro 50 setting. Ingested into FCP fine and editing fine. I've even added stills and threw in a little ken burns action on the stills. Here's my question, my sequence was set up correctly using the easy set up and my sequence plays back perfectly using my Intensity Pro card to a consumer TV, but upon export I get all these weird interlacing issues. The fields on the stills look like they have shifted dramatically. I've used TIFs at 72 dpi because I've found FCP does not like JPEGs half the time. I've also noticed that a few images (mainly the print ads i've placed in) all appear as one solid color, pink. Can't figure this one out.
    So, I think I've found a work around for the problem. I exported those smaller image sequences and nested them back into a duplicated timeline. What causes the field shifting in both Export to quicktime, and Export using Compressor to make MPEG 2 files for DVD? I would like to resolve this so I don't have to nest the image sequences next time. I just adds a lot more work. What am I missing? Again, play is fine, exporting is the issue.

    Hmm, thought I said x86-64, not Itanium (people run Itanium still?). Yes, officialy CentOS is not supported (but it is codebase the same as RHEL 4.4 and since this is only dev work...), but if you read the message, I cannot even get to the install because I cannot extract the files from the CPIO using the instructions provided...so...again, anyone else having this issue? I know the site was having some problems earlier in the week and the files were null.
    BTW, the 32-bit version installed just fine (other than the ksh relinking issues...d'oh...when are we going to get rid of that as a requirement in linux?).

  • [SOLVED] Qtiplot: export graphs as .tex

    Hi everyone,
    Qtiplot has Latex export support for graphs, tables and matrices since version 9.7.9. It uses the QTexEngine library, and the TikZ/Pgf graphic systems. I couldn't find QTeXEngine in the repositories, neither in AUR, so I built it from source. TikZ/Pgf is part of Texlive as far as I know. I still don't have the option to export my graphs as tex file from Qtiplot. What causes the problem, what am I missing? How can I make it work?
    Thanks in advance,
    Balazs
    Last edited by Ben_the1st (2011-12-24 16:15:32)

    Hi,
    I've just submitted new version of qtiplot with origin import support to AUR (qtiplot-opj):
    https://aur.archlinux.org/packages.php?ID=55184
    It also has QTexEngine support compiled in, so it is able to export graphs in tex support.
    You can give it a try, and please report any errors or successes.

  • Lightroom JPEG export VS Photoshop Image Processor

    Hey guys:
    Long time photoshop and lightroom user (long time user of all things Adobe). First post here in the forums. I did a search for my question but I think it was too specific, so it returned zero results.
    My question is about Lightroom's JPEG export vs Photoshops Image Processor. When I export a RAW file to JPEG from Lightroom, the file size is freaking huge. The JPEG is as big as my original RAW file (~25mb). Settings are set to default - 100 quality. Everything else remains untouched.
    However, when I use Photoshop's image processor (I launch it through Bridge, easier that way for me) and process the RAW images that way, my JPEGs are roughly 5-10mb in size. Settings in Image Processor are quality 10 and thats it. No actions being run or anything.
    Can anyone shed some light as to why Lightroom exports JPEGs that are roughly 2-4 times the size of Photoshop's JPEGs? My initial thoughts are that the 100 quality setting in Lightroom is more like Photoshop's quality 12 (that always makes me think of Spinal Tap - "Why don't you just make ten louder and make ten be the top number and make that a little louder?" "These go to eleven.") Ideally, exporting out of Lightroom would be much easier for my workflow.
    Thanks in advance.
    -The Doctor

    DrMilesBennell wrote:
    Can anyone shed some light as to why Lightroom exports JPEGs that are roughly 2-4 times the size of Photoshop's JPEGs? My initial thoughts are that the 100 quality setting in Lightroom is more like Photoshop's quality 12 (that always makes me think of Spinal Tap - "Why don't you just make ten louder and make ten be the top number and make that a little louder?" "These go to eleven.") Ideally, exporting out of Lightroom would be much easier for my workflow.
    You are correct: LR Quality 100 = PS Quality 12
    Despite LR having 101 Quality settings (0 to 100) it actually only has 12 Quality settings the same as PS 'Baseline Standard':
    JPEG Quality Setting Comparison
    PS
    LR
    LR Range
    Typical Reduction
    0
    0
    0-7%
    11%
    1
    10
    8-15%
    23%
    2
    20
    16-23%
    14%
    3
    30
    24-30%
    14%
    4
    35
    31-38%
    16%
    5
    40
    39-46%
    24%
    6
    50
    47-53%
    4%
    7
    55
    54-61%
    27%
    8
    65
    62-69%
    25%
    9
    70
    70-76%
    31%
    10
    80
    77-84%
    35%
    11
    90
    85-92%
    41%
    12
    100
    93-100%
    I keep a small copy of the above table taped to my monitor. I chose the numbers under the 'LR' column for the 12 steps (not AA's) to make it easier to remember. In actuality ANY number in the LR Range column will produce the same results for each step.
    Under the 'Typical Reduction' column notice the small amount of reduction for PS 6 (LR 47-53%) Quality setting. If interested why AND why you probably shouldn't use PS 7 (LR 54-61%) Quality setting see this post:
    http://forums.adobe.com/message/5641903#5641903

  • How can I export an edited image to a file?

    I can't seem to find a way in iPhoto 09 do this. Can I export an edited image to a file, keeping the edits intact, or do I have to use a 3rd party editing app when I edit from inside iPhoto 09?
    I would prefer to use iPhoto's editing tools so should I import previously cropped images into iPhoto? If yes, what file should I use? I was wondering if anyone does this on a regular basis and if there issues doing this.
    I like the editing tools in iPhoto very much. In other apps I have always cropped, resized, corrected levels and a bit of color. I am not a power user by any means and I am close to doing this all in iPhoto if I could only export the edited image to a file.
    The reason I want to do this is because the printing portion of my work flow is to upload files to my merchant who prints them and are ready for nearby pickup within an hour. This is all done at a very reasonable price and the color accuracy is very close.
    Any advice would be greatly appreciated.
    Regards,
    Jim

    You can edit from iPhoto by dragging to the desktop or exporting using the File -> Export command, setting the Kind to anything except original.
    But you probably don’t need to:
    There are many, many ways to access your files in iPhoto:
    *For Users of 10.5 Only*
    You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Apple-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    You can access the Library from the New Message Window in Mail:
    Uploaded with plasq's Skitch!
    *For users of 10.4 and 10.5* ...
    Many internet sites such as Flickr and SmugMug have plug-ins for accessing the iPhoto Library. If the site you want to use doesn’t then some, one or any of these will also work:
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. However, if you're using Gmail you can use iPhoto2GMail
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    *If you want to access the files with iPhoto not running*:
    Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    Regards
    TD

  • I'm trying to export a raw image from lightroom 5.6 to Photoshop cc 2014 2.1.  I right click to export menu in lightroom as I've always done to export to Photoshop.  Photoshop opens, but it can't open file, window opens to find a file to open.  I'd like t

    I'm trying to export a raw image from lightroom 5.6 to Photoshop cc 2014 2.1.  I right click to export menu in lightroom as I've always done to export to Photoshop.  Photoshop opens, but it can't open file, window opens to find a file to open.  I'd like this to export my lightroom images to edit in photoshop as it has always been able to do for me.  What fix do you recommend?

    Hi Ashley Clavette,
    The Initial view setting works perfectly when the file is opened in Acrobat after setting the desired Initial View.
    When you upload the file onto Wordpress, and view it on that website in the browser...it might be using a different pdf handler program which might be causing this issue ( it would be helpful, if you could provide the screenshot) , however when you download the pdf again from wordpress server...and open in Acrobat/Reader...then what  exactly happens ?  Does the pdf opens in the desired Initial View setting?
    Rahul

  • Exported Raw Conversion Image Resolution and Assigning a Color Profile, etc

    In Aperture 1.1, although I set the exported Raw conversion image resolution to 300 dpi in the preferences, it continues to come out at 72 dpi which is something of an inconvenience. Also, is it possible to assign a color profile to the "exported version" so that it is congruent to my PS CS2 color workspace (if that is what its called). Is this program capable of carrying out a conversion as a background operation? Finally, can the layout windows be configured so that they remember how they have been used in the past? Thanks.

    Iatrogenic huh! Cool!
    Anyway, I'm not real clear on what it is you are trying to accomplish. Despite your obvious vocabulary skills, there seems to be some disconnect relative to what you are trying to accomplish. You are right that "exporting a version" in Aperture is roughly equivalent to what happens in ACR when you "Open" a RAW image into Photoshop. In both cases you have, hopefully, already done the adjusting of parameters you want prior to "exporting", or "opening". When you "open" or "export" you wind up with an "image" composed of pixels, whereas in the RAW adjustment phase you are just working with a temporary thumbnail and a set of mathematical instructions. Big difference, I suppose is that when you "open" and image from ACR into CS2, the resulting image is truly just pixels and has not had a "file type" applied to the file yet, until you "save" it, while in Aperture, if you "export" a file to CS2, or to the desktop, you end up with the file type already applied. Presuming you "export" a 16 bit TIFF or PSD, there is no operational difference.
    I could be wrong, but with the new Bayer Demosaicing algorithms in Aperture 1.1, and the Camera RAW adjustments, you should be able to come up with an adjusted image that is VERY close if not identical to one done in ACR, with the possible exception of lens abberation adjustment. I was very critical of the RAW adjustments in 1.0.1, but I am very happy with the capabilites in 1.1. That said, I think there is still some room for improvement in user friendliness of some of the adjustments such as Levels.

Maybe you are looking for