Saving a TGA from an Export plug-in

I am new to Photoshop plug-in development and I'm still finding my way around the API.  I am writing an Export plugin, I would like to first save the current image as a TGA file, if possible I would like to let everything run just as if the user selected File->Save and selected Targa.  Then before the plug-in completes, I want to do additional processing on that TGA file to generate other data.  I have been able to save a bitmap using windows GDI+, but I'm hoping there is some API code that I can make use of directly.
Thanks!

Hi chansarinyamas,
Like I said in my original post, I'm new to Photoshop plugin development, so I don't have a lot of answers for you, at least, not authoritative answers.  Still, I installed the Photoshop SDK and looked through the samplecode projects.  In particular I modelled my plugin on the samplecode/export/outbound project.  It is a bit clunky and I have had a lot of trouble creating a new project, or even extracting that one from the sample folder, as it is not a self contained sample.  It relies on shared code and tools elsewhere in the sdk folder.  I recommend you pick a sample project close to what you want to accomplish, duplicate the folder and work on it from the inside out.  As you gain familiarity with the way Adobe has things set up, you can write more on your own.
As for C#, I don't think that's going to work.  The Photoshop plugins are DLLs, and everything is based on C or PASCAL calling conventions (can't remember which.)  Anything in C# is going to be managed code, so unless you want to spend time figuring out how to write a CLI (Common Language Interface) layer your C# DLL (can you even target a DLL from C#?) won't be able to interface with Photoshop.  I agree that it would be nice to have the C# UI editor available, but I don't think you're going to get that to work.  Once again, I'm not an expert in this, so a lot of this is based on assumption.
Good luck.  For my problem I finally gave up and used a third party library, Dev IL.  Unfortunately I could not link the project directly, so I had to manually load the dll library, extract the routines I needed, and call them.  I'm not at all happy about it, but it works.  At least until I have time to investigate PS Plugins more, or someone makes a helpful suggestion here.
-R

Similar Messages

  • How to move worksheet saved on database from one instance to another?

    Hi Every one,
    How to move worksheet or workbook saved on database from Discoverer plus from one instance to other instance?
    Is there any way to save a workbook or work sheet on to local drive from discoverer plus.?
    Thanks
    santhosh

    Hi,
    You have 2 options: use Discoverer Administrator to export/import the workbook; or use Discoverer Desktop to save the workbook to the local drive.
    You cannot save a workbook to the local drive using Discoverer Plus.
    Rod West

  • Trouble saving a pdf from In Design with Illustrator files linked.

    I have trouble saving a pdf from In Design. Most of the files i've linked are Illustrator files with size up to 70mb.
    I am getting out of memory message   The In Design file isn't that big - about 9mb.
    HELP!!!!!!

    It did not help to close and reopen it.
    Not sure what you mean with exporting in chunks but if you mean exporting page for page , so it didn't work either.
    I think that i'll try to reduce the size of Illustrator files , but I 'm not sure what will be the optimum size for that In Design won't crush again.
    Or maybe i should make the presentation in illustrator instead? It take some time to save pdf from illustrator when the original file is about 90mb, but still it works.

  • Real 10 Export Plug-in for Mac OS X Doesn't Work?

    I need to create RealAudio .rm files from .aiff files. RealAudio now has an export plug-in for quicktime. I know it's not working for 10.4, but I'm on 10.3.9 with QT 7. An export of "Movie to Real Media" does now appear in the export menu. But trying to export an AIFF file starts the process but it instantly fails with an error "-2009". No indication what's going wrong. Any hints. The real.com website is no help.
    Is there a better solution for creating .rm real audio files?
    Here's the Real Export for MacOSX web page:
    http://www.realnetworks.com/products/realexport/specifications.html

    I have tried this on 2 different machines and the only thing that worked was to reinstall quicktime 6. Apple does have a reinstalled for quicktime 6 from 7. http://www.apple.com/support/downloads/quicktime652reinstallerforquicktime701.ht ml

  • LR5 Export Plug-Ins

    Can I set PS Elements 11 as an export plug-in in LR5?  Have tried using the LR5 Plug-In Manager which shows an error each time I try

    Most people set up PSE as their external editor for editing directly from the LR Library:
    Edit >> Preferences >> External Editing
    Click choose and navigate to the PSE11 Editor application to set it up, then click OK.
    You normally make the round trip from Lightroom as follows:
    1) Ctrl+E in the Library to export selected image with develop settings (I choose PSD)
    2) Edit in Elements; then Ctrl+S to replace (overwrite) Lightroom export copy
    3) Ctrl+W to close in Elements and update Lightroom thumbnail.
    Otherwise at the bottom of the export dialog you can use post processing to open in another application after the export is complete.

  • My question is Itunes related.  How do you prevent a playlist saved in Itunes from alphabetizing the song list created. I wanted to keep the original order, and somehow everything was alphabetized without requesting it.

    My question is Itunes related.  How do you prevent a playlist saved in Itunes from automatically alphabetizing the song list.   I had a specific order of songs that I wanted, and Itunes somehow automatically alphabetized them.  Is there a way to turn that feature off, and/or get them back to the original order?   I also noticed that once a playlist has been created, I cannot manually changed the order of the songs from my desktop..  Any suggestions?

    That's just the sort order. It's displaying the media alphabetically because you have clicked on the NAME column near the top of the iTunes window.
    Click on the little triangle above the column of numbers (usually on the far left side of the main iTunes window) and the media will sort in the order in which you added each item to the playlist.
    You can easily reorder songs within a playlist: Click and HOLD on the song you wish to move, then drag-and-drop it wherever you like.

  • HT1476 My iPhone 4S will charge on a laptop but not from a wall plug. I have tried different boxes and different USB cords from the wall but none work. These boxes and USB cords work for other family members with iPhones. I'm stumped :/

    My iPhone 4S will charge on a laptop but not from a wall plug. I have tried different boxes and different USB cords from the wall but none work. These boxes and USB cords work for other family members with iPhones and a USB cord that works from the laptop won't work from 3 or 4 different wall boxes that work for others. I'm stumped :/

    Update: It seems as though the phone will charge if I plug it in and then turn it off.  It will not charge while the phone is on.  Also iTunes will not recognize it, so I can't sync or anything.  I read somewhere that it could be a fuse somewhere?? Or maybe the dock connector. Where is the best place to get this repaired?

  • How do I stop my MacBook Air saving every picture from web sites I visit

    How do I stop my MacBook Air saving every picture from any websites I visit mainly cars

    What browser are you using?
    Have you tried a different browser?
    Ciao.

  • I saved my photos from my old iphone to my computer.  how can i get them onto my new iphone 6?

    i saved my photos from my old iphone to my computer.  how can i get them onto my new iphone 6?

    iTunes: Syncing photos

  • Is it possible for an Export plug-in to call another plug-in?

    Hi,
    I have an automation plug-in that I want to appear in the 'Export' file menu. Is it possible to create an Export plug-in that doesn't do anything except call the automation plug-in?
    Thanks
    RR

    No, but an automation plugin can call an Export plugin.

  • Recovering from an export

    Hello . . . let me start by saying that I had nothing to do with getting into this situation--I'm just trying to clean up after it.
    Let's say that all you have of your 9024 database is a full export. Not a full backup, just a sys level export. Don't even know what tablespace names were in the db. Then your database gets hosed.
    Running htmldb 10404. What would you recommend to get back your applications? (skip to ******* to see what I am considering)
    I first tried to just import the flows_010404 schema into a 10.1 database, but I got a lot of errors doing that. Not exactly sure why, but I did. Will likely go back to that approach, though.
    Even though I got the errors, it seemed as if all of the tables and data made it in (but not a lot of the other objects). Not certain, but I thought I would try the following:
    1. Installed htmldb 010500 into the db using companion CD
    2. Thought I would be able to run an upgrade script to upgrade from a previous version, but nooooo, there is no upgrade to 010500, I have to export and then import. Of course, I can't export, because I don't really have the freakin' schema.
    3. thought maybe, just maybe, I could run
    exec FLOWS_010500.wwv_flow_upgrade.switch_schemas('FLOWS_010500','FLOWS_010404');
    and switch to the 010404 schema and work out an export. nope. Like I said, the schema just isn't right.
    So . . .
    I'm thinking about doing this:
    1. install version 010404 into a 9.2 database (just like it was when it was exported). This will give me a nice fresh 010404 instance.
    2. disable all triggers on all tables in the 010404 schema
    3. trunc every table
    4. import the 010404 schema from the export
    5. enable all the triggers
    6. Then try to log in and do a flows export of the stuff. Take that export over to my 010500 instance in the 10g db and try an import.
    What do you think???
    Thanks,
    Anton
    p.s. this s*cks

    Scott,
    thanks. this worked! the one thing is that the import naturally imports the encrypted passwords. There was one problem that the passwords went through a character set conversion, so I no longer new them. With a little help from Sergio (drat! I should have been ale to figure it out on my own!) I worked that out.
    Thanks again,
    a-

  • IMPORT a VIEW from an export dump file

    I'm trying to import a view from an export dump file. In using the Import Utility, do I use the TABLE parameter and give the View name ie: TABLES=view1
    null

    Only I want to do is import ONE view from an export dmp file that contains hundereds of table, many views and procedures. I do not want to reimport everything from the export file.

  • I am batch processing in PS 2014 (watermark and saving as jpeg from ps file). I get the message for some but not all 'this file needs to be saved as a copy with this option'. And then I have to save it manually. Does anyone know why this happens? (It is j

    I am batch processing in PS 2014 (watermark and saving as jpeg from ps file). I get the message for some but not all 'this file needs to be saved as a copy with this option'. And then I have to save it manually. Does anyone know why this happens? (It is just a plain photoshop file, a watermark is added, then save as jpeg - the jpeg is saved to a different folder than the original photoshop file.)  It happens for about 10 of 30/40  files approximately . Thank you, Kathryn

    I believe I have figured it out - I need to flatten the image, even though there are no layers except for layer 0, first.

  • My ipad will no longer connect to the laptop. it comes up with usb not recognized. also when trying to connect to the power the first time i connect, nothing, but when i unplug from ipad and plug in a second time it charges

    my ipad will no longer connect to the laptop. it comes up with usb not recognized. also when trying to connect to the power the first time i connect, nothing, but when i unplug from ipad and plug in a second time it charges

    yeah tried all that. the only thing that i havent tried is to delete itunes completely and restart. its the same with the ipad. i havent done a master reset. i just think it has to be something rather simple as it acknowledges that i have plugged in the ipad as it makes the noise it just come up usb not recognized. it shows up as an unknown device that doestn have  any drivers
    its driving me round the bend at the minute

  • Need some help in saving video message from viber to my Iphone. I disabled the thing that would save photos and videos automatically then, there comes a video I want to save. After loading and watching it, I press the "save to gallery"

    Need some help in saving video message from viber to my Iphone 5S with new ios 8's program . I disabled the thing that would save photos and videos automatically then, there comes a video I want to save. After loading and watching it, I press the "save to gallery" thing but it doesn't save in gallery. I tried all, restarting my phone, rebooting then turning on the save automatically thing and when I watch it again, it still wouldn't save.

    Probably a good question to ask Viber or look at their support site.

Maybe you are looking for

  • Issue with variable value

    Apologies for my mistakes, I am learning pl/sql as I have to fix something at work that's broken. I have this bit of code: DECLARE     l_x_contract VARCHAR2(100); BEGIN SELECT DISTINCT wiav.text_value        INTO l_x_contract    FROM apps.wf_item_att

  • Flex Builder debugger breakpoint  folows wrong lines

    this morning i start seing strange things happening with flexbuilder, first it seeme that it was entering code that was physically impossible; things like entering "if" clause and then immediately entering " else " clause, finally i realized debugger

  • How to hide line console parameters through Cisco ACS

    Hi, Can any one of you please help me in the following scenario ? I want to hide the line console, line aux and line vty configuration parameters of the cisco devices based on user level privillages through Cisco ACS. For example, if a user logs into

  • Form renders in separate window

    Some users are having an issue where their forms are rendering out of the browser and they don't have access to the routing buttons.  The users that have this issue have it consistently (user A will always have the issue) but other users with the sam

  • Movement of a image...

    import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; public class Mouse extends JFrame implements MouseMotionListener {      JPanel mapPl;      JLabel label;      public Mouse()           Container contentPan