Export/Save As...Visual objects in WPF/XAML to image format like *.png or *.jpeg

Hi,
I am working on getting the content of a Canvas i.e. the children arranged on Canvas as nodes and edges of a dependency graph representing certain relationship. I want to export or "Save As..." image format. I achieved it successfully, with some
trial and error, as it was first time for me to write such functionality. However, I have encountered couple of issues; I am using RenderTargetBitmap
with dpix and dpiy as 256.
Issues:
 The image shrinks on render as image with PixelFormats.Pbgra32;
though it scales well in windows image viewer.
If I try to obtain bounds as Rect bounds = VisualTreeHelper.GetDescendantBounds(content);
and utilize the width and height in RenderTargetBitmap to avoid clipping of image; with certain multiplier - I get system out of memory exception; the multiplier is around 2.67; any value greater than 3 runs into exceptions.
Please provide me any reference or any other way of achieving the export.
Thank you,
Best Regards,
Mandeep

Hello Atwal1,
Since this issue is related with WPF, I move it to the WPF forum there WPF experts will help you. The current forum is for .NET class libraires.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How to export PDF to HTML with JPEG image format (not PNG)?

    Hello,
    When I export a ".pdf" file to ".html", using Acrobat 11 Pro, the program creates a subdirectory with ".png" image files.
    I need these images to be in the ".jpg" format, not ".png".
    Do any of you know how to change this setting? I am assuming that it is not a permanent default...
    Thank you,
    brivera0

    Alas, I checked on my Acrobat XI before posting. That setting was removed.

  • Export of Oracle Database objects

    Hi,
    I have question on exporting oracle objects.
    Can we export all of oracle objects in form of xml file?
    Like we have exp command to take the dump of database, is there a way to take db dump in form of xml.
    Why xml, because it can be easily read by other languages like Java, plsql, VB and later objects can be created in Database.
    Please suggest me a way to achieve the requirement.
    Thanks in advance
    Regards,
    Prasad

    user10302855 wrote:
    Hi,
    I have question on exporting oracle objects.
    Can we export all of oracle objects in form of xml file?
    Like we have exp command to take the dump of database, is there a way to take db dump in form of xml.
    Why xml, because it can be easily read by other languages like Java, plsql, VB and later objects can be created in Database.
    Please suggest me a way to achieve the requirement.I am not sure that your requirement is a valid requirement. When you talk about XML, do you think that it can store data like a datafile does? I am not an XML expert but as much as I know about it, it just have tags and you don't want to show your client's credit card number in a text based XML based file under a tag called CreditCard would you? What you can do is that you can get the structure of the table of yours in the XML format using the package dbms_metadata . The data is going to be , at least in my knowledge, would be exported through the export binary and not in XML. Again, I am not an XML expert so I may be wrong too.
    Aman....

  • Export / save a page as pdf / rtf / doc format

    hi all,
    i've created a page that looks similar to a resume format. i used different pl/sql regions and used the htp.p package to create the page like in html format. now i need to have an option to export / save the page as rdf or doc or rtf format. is it possible to do this?
    thanks.
    allen

    Have a look at this excel-export, http://htmldb.oracle.com/pls/otn/f?p=31517:108:1573041583318845:::RP,:: by Denes Kubicek.
    Maybe that can inspire you for you needs. I don't think pdf-export is possible this way though.
    Good luck.
    /Daniel

  • Save a KeyNote Object

    Hi
    Can anyone suggest a method to save only an object built in Keynote as a jpg or a gif?
    For example: Say I develop a colored, rounded button with some text on it. How would I save just this button?
    iMac G5 (Rev A) 20in, 1.42ghz Mac Mini G4, 1.67ghz PowerBook   Mac OS X (10.4.9)   1gb in all Macs, 5G iPod, Airport Extreme and Express and a iDog!

    You can copy the object, open Preview, and in the File menu choose "New from Clipboard" -- this will plop your object into a Preview window. From here, you can save the object in various image formats, including PDF, TIFF, JPEG, GIF, etc. Do note that it looks like transparent parts of the object are preserved only in the PDF format, and that other formats (including those that should support transparency, like GIF) see a white background in transparent areas. (If you copy and then paste into a new Photoshop document, you can get rid of this background.)
    Another option would be to take a cropped screen shot (Command-Shift-4). If transparent areas are a problem, and the item is to go on a solid background, you could give the object the appropriate background colour in Keynote, and then take a screenshot with that background.

  • AddAdoCommand problems from visual objects

    Post Author: powerneet
    CA Forum: Other
    I'm trying to use the AddAdoCommand from Visual Objects.
    The code is simple:
    cConnectString:=IVarGet(oTableLink,#connectbufferstring)
    // resolves in : Provider=SQLOLEDB;;Data Source=(local);;Initial Catalog=200;;User ID=;;Password=;;Integrated Security=-1;;Use DSN Default Properties=0;;Locale Identifier=1043;;Connect Timeout=15;;General Timeout=0;;OLE DB Services=-5;;Current Language=;;Auto Translate=-1;;Initial File Name=;;Use Encryption for Data=0;;Replication server name connect option=;;Tag with column collation when possible=0
    this works: oDatabase:AddOLEDBSource(cConnectString,"bedryf")
    this fails: oDatabase:AddAdoCommand(cConnectString,"select * from bedryf")
    The profiler shows:
    exec Provider=SQLOLEDB;;Data Source=(local);;Initial Catalog=200;;User ID=;;Password=;;Integrated Security=-1;;Use DSN Default Properties=0;;Locale Identifier=1043;;Connect Timeout=15;;General Timeout=0;;OLE DB Services=-5;;Current Language=;;Auto Translate=-1;;Initial File Name=;;Use Encryption for Data=0;;Replication server name connect option=;;Tag with column collation when possible=0
    select * from Provider=SQLOLEDB;;Data Source=(local);;Initial Catalog=200;;User ID=;;Password=;;Integrated Security=-1;;Use DSN Default Properties=0;;Locale Identifier=1043;;Connect Timeout=15;;General Timeout=0;;OLE DB Services=-5;;Current Language=;;Auto Translate=-1;;Initial File Name=;;Use Encryption for Data=0;;Replication server name connect option=;;Tag with column collation when possible=0
    Please help me, i'am getting .......

    Thank you Gaurav for pointing me in the right direction. There was some debate in the blogs as to which data transferring method (amfphp, json, or xml) was best. See
    http://blogs.adobe.com/mikepotter/2006/07/php_and_flex_js.html
    and
    http://www.5etdemi.com/blog/archives/2006/12/clearing-the-fud-on-amfphps-speed-versus-json -and-xml/
    I used json yesterday
    php:  json_encode(array($p1, $p2));   // observation: you only have to encode once as opposed
                                          // to using amf on each array...
    FB:   private var jsonD:JSONDecoder = new JSONDecoder();
          var jsonString:String = {{{return result from service call}}}
          myPeople:ArrayCollection = jsonD.decode(jsonString, services.personservice.Person);
    Note that in FB you can use the services.personservice.Person class as an optional argument in the jsonD.decode function. This class can be automatically generated using FB's built-in data service's panel when you try to configure the return type (as I described above). The json data should unserialize correctly with Cars objects automagically created and everything (a huge time saver!!).
    It worked for me, though I'm not sure how deep the unserialization process is capable of going (objects within objects w/in objects, for example). Also I had some trouble with adobe's jsonDecoder; it had trouble eating (uhm parsing) hollow objects (i.e. objects with null properties), whereas the php_encode / php_decode handled these objects w/o fail.
    Anyway, will be reading up on amf. Tanx again Gaurav,
    - e

  • Save XXL list object in SAPoffice issue

    Hello,
    One of my user recently got a new laptop and after that, whenever she used KSB1 to do the export to excel as pivot, she is getting the below option "Save XXL list object in SAPoffice". She is not getting the pivot table option. I tried to find her entry in report "SALV_BS_ADMIN_MAINTAIN" to delete, but, I could not find her entry. Also, she tried to test the same on another laptop too, there also she is getting the same error. I am not sure if it a Profile issue or GUI issue. Please suggest. Also, she maintained her profile with parameter "SALV_BS_ADMIN_XXL". I am not sure if it is a problem.
    Thanks.

    It's not an authority issue that SAP_ALL/SAP_NEW would fix either.  That 'error' happens when the XXL code can't find the correct version of Excel that it expects from the registry.  It behaves as if Excel is not installed and pops the SAPOffice document prompt.  Debug the XXL code from the laptop and you'll see what I mean  (or just from your PC to view the logic).

  • How make Ps save its smart objects directly on the current folder project?

    How make Ps save its smart objects directly on the current folder project?

    Assuming you are on windows - Right click on the smart object layer in the layer panel and select export smart object. This will create a psb file than can then be opened later by photoshop using the normal File>Open.

  • Export statement in ABAP Objects

    Hi All,
    I am using A Statment like this a BADI.
    EXPORT XXXXX TO MEMORY ID 'YYY'.
    But this statement is not supported in ABAP Objects can any one please let me know how i can use export statment is abap objects?
    Thanks in advance.

    I have pass a structure to the memory.
    Here is my structure : ztest.
    And i am using like this
    EXPORT ZTEST TO MEMORY ID 'HK'.
    Its not supporting in ABAP Objects.
    Can you please more clear with your answer?
    Thanks

  • How can i save the Visual script in other drive

    Hello
    I'm new in this Forum and i'm just started working on Oracle functional tool.
    In Oracle functional tool , i can't save the visual script in the different path ...
    For example:
    I have installed this suite in drive C: and all the scripts are saved with in it..But i want to save the script in other drive whereas E: drive ...........
    How can i do.....
    Regards
    Deepika

    hi
    you can store the scripts in one of the workspace available in OATS.
    you wont get a chance to create the work space in other drive then in which OATS is installed.
    but if you need to make a back up of scripts then simply copy and paste it wherever you want them,and whenever you need to run the script then copy it and paste to one of the workspace of OATS.
    hope will help you
    regards
    Umesh
    Edited by: USoni on May 15, 2009 3:41 AM

  • Automatic export/import of ESR object

    HI.
    I want to automate export/import of ESR object.
    How can I do?
    1)export the ESR object on development system
    (automatic import to QA sysytem)
    2)activate the chang list on QAS
    regards,

    U may perform the transport to QA using CMS. Or u may simply export the ESR objects as tpz file and import it in QA system.
    Regards,
    Prateek

  • Exporting and importing Configuration objects in PCK

    Hi all,
    Anyone have a idea of exporting and importing configuration objects in PCK .
    please give me step by step guide if you have any related document.
    Thanks
    Ashwin

    Hi ashwin
    Welcome to SDN forums
    Check out the following thread  for more info
    PCK Configuration Export and import
    <i>reward points if helpful</i>
    Regards
    krishna

  • Export: ". exporting post-schema procedural objects and actions"

    Hi all,
    I am trying to do a full database export from the server and an import to another PC.
    I tried exporting recieved the following warnings:
    . exporting synonyms
    . exporting views
    . exporting referential integrity constraints
    . exporting stored porcedures
    . exporting operators
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting triers
    . exporting matrializes views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh grups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    EXP-00008: ORACLE error 903 encountered
    ORA-00903: invalid table name
    ORA-06512: at "SYS.DBMS_RULE_EXP_RL_INTERNAL", line 311
    ORA-06512: at "SYS.DBMS_RULE_EXP_RULES", line 142
    ORA-06512: at line 1
    EXP-00083: The previous problem occurred when callig SYS.DBMS_RULES.schema_info_exp
    . exporting user history table
    . exporting defualt and system auditing options
    . exporting statistics
    Export terminated successfully with warnings.
    I been through the forum and was advised to run the catalog.sql, then rerun the exp command.
    I did as suggested but the export hangs at the last line:
    Export donw in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    About to export the entire database ...
    . exporting tablespace definitions
    . exporting profiles
    . exporting user definitions
    . exporting roles
    . exporting resource costs
    . exporting rollback segment definitions
    . exporting database links
    . exporting sequence numbers
    . exporting directory aliases
    . exporting context namespaces
    . exporting foreign function library names
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions <- hangs here
    Is there a way to resolve this? Or should I approach another method?
    Any of your help is greatly appreciated. Thank you.
    Thanks and Regards
    San

    I am also trying to figure all the stuffs out. I try to answer as much as I know. Thanks.
    What is the export utility version?
    Using exp, "Export: Release 9.2.0.1.0"
    What is the import utility version?
    Using imp, "Import: Release 9.2.0.1.0"
    What version of Oracle database are you trying to export?
    9.2.0.1.0
    Into what version of Oracle database are you trying to import?
    9.2.0.1.0
    What are the database character sets and values of environment variable 'NLS_LANG' for each case?
    Not sure about this but I didnt change any parameters of the character set, should be
    WE8MSWIN1252
    Using WinXP OS, <- quite problematic, having a hard time trying to configure. :(

  • How can I export schema with all objects and few tables without data

    Hi all
    Verion 10g EE.
    I have to export schema with all objects but i need to ingnore some of the table data.
    There are 4 table those have huge data, we need not to export those tables data but structure should export.
    Thanks,
    Nr

    You can do this with a single command.  Run your export as normal and add query parameters for the 4 tables that you don't want any rows:
    expdp ...  query=schema1.table1:"where rownum = 0" query=schema2.table2:"where rownum = 0" ...
    It is best to put the query parameters in a parameter file so you don't have to worry about escaping any OS special characters.
    Dean

  • Export/Save/Save As..   to current location

    Sometimes when using an application to export, or save a file, the save location defaults to some random location; maybe documents, or a previously saved to folder. Is there a quick way (button) in the export/save window that will set the location to the location the file was opened from, or where it currently exists?

    If you use "Save" the item will be saved in the place the original is. It will overwrite the original, of course.
    "Save As" on my machines reverts to the last place a "Save As" location was selected.
    How would it know where you want to save it to? The best guess is the same place you last saved something. I have hundreds of locations on my computers where I save things. I don't see how the "Save As" function could know where I want it.
    A complicated algorithm might be able to determine the location based on the file type and the number of times a similar file has been saved in a particular place but it would not be perfect because sometimes I save a .txt in a picture directory, etc.
    Maybe this only occurs when using the Export option. Occasionally when opening an existing file, and using Export, neither the default save location, nor the recent save locations are the source file's location. So you must click through to it's location. A simple button that selects the open file's (source) location would be sufficient.
    Like this: http://i87.photobucket.com/albums/k140/graphicaliber/Save-exported.jpg

Maybe you are looking for

  • ASA5505 Can't pass traffic between inside (private) & outside (private)

    10.15.50.0/24 <---> 10.15.50.254 (inside / ASA5505 \ outside) 10.60.15.253 <---> 10.60.15.254 <--- (cloud) ---> (eventual destination 10.15.60.0/24) Goal: 10.15.50.0/24 traffic will communicate with 10.15.60.0/24 while block all other.  Current confi

  • Cannot install 64bit 10.2.0.4 Client on 64 bit Vista

    Please help! I am trying to install the client package located here: http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10204_winx64_vista_win2k8.html Installation just quits after unzipping the files into \user\AppData\Loca

  • Re: Changes in the material master.

    Hi guru's, The vendor supplies the material 1 box which consists of 20 pieces, we known that in the material master the unit of measure for alternate UoM is maintained as 10 pieces (in additional data tab). If I make changes as the receipt from vendo

  • Discoverer Viewer - date picker is missing

    Hi, I have a report with the date parameter. It is based on the item of date type. If I run it in the Discoverer Plus then the parameter has the date picker next to the filed as expected and I can choose the date from the calendar. Running the same i

  • Suggesting a text in a text box

    Hi, i want to suggest a text into a form textbox & i am having issues with it. Like gmail uses it during the regsitration mode. Hinting user about the response expected.like. Using php or javascript but php is more preffered by me.