New to this - my head hurts - a few pointers anyone, please?

Hi all,
I've setup the samples, converting them back to compile in VS6 etc, and all that works ok. However, I'm having difficulty getting my head round what I want to do, so...
1. I want to draw a preview of the current image in a rectangle on my dialog box. How? I can see a DisplayPixelsProc() callback but it requires a PSPixelMap parameter - where do I get one of those from in an automation plugin?
2. How do I retrieve the pixel dimensions of the current document? The following gives an unhelpful answer
double width;
DescriptorUnitID unit = unitPixels;
error = PIUGetInfo(classDocument,
keyWidth,
&width,
&unit);
It seems confused by the current PPI setting. If I query a document which is 300 pix wide and PPI=72 then the answer is correct. But if the document happens to be set at 360 ppi then the answer is scaled by 72/360 to 60 (at least that's what I deduce is happening).
3. Generally I haven't quite got my head around the idea of whether I'm supposed to think in terms of callbacks, suites or COM automation.
I'd be very appreciative if anyone can point me in the right directions.
Thanks
Miles

See the Dissolve example for using displayPixels. You have your work cut out for you because you are trying to display in an automation plug-in. See the AutomationFilter / Hidden combination for getting pixel information into an automation plug-in.
You will need to get the resolution and width height to get the exact information. 72 ppi is assumed in many cases.

Similar Messages

  • When I try to update my macbook air to the new OS X Maverick it say unknown error and to please try again later. This has been going on for a few days and was hoping someone can help. Thanks.

    When I try to update my macbook air to the new OS X Maverick it say unknown error and to please try again later. This has been going on for a few days and was hoping someone can help. Thanks.

    After I upgraded to Mavericks I was also having this message when I tried to update. There was a previous post about this problem which offered this simple solution which worked for me:
    b0n0b0
    Re: Recently upgraded to Maverick from SnowLeopard. Unable to get updates from App store.
    Mar 15, 2014 9:05 AM (in response to Terence Devlin)
    Got it! Thanx.  What I did was go to my account, check that they had my new ID and Password which they did, then hit reset button. All fixed.

  • My Iphone and Ipad will not pick up my new email messages..for the last few days...I have tried deleteling the account and reseting it and it still only picks up the old messages? Anyone else having tis problem? ANy ideas how to fix it?

    My Iphone and Ipad will not pick up my new email messages..for the last few days...I have tried deleteling the account (a number of times..)  and setting the account back up?  and it still only picks up the old messages? Anyone else having tis problem? Any ideas how to fix it?
    This just started happening for no reason...no changes to the phone or Ipad?

    my iphone and ipad will not send or receive emails or messages for the last few days.  it is telling me that cannot connect to server

  • I am new to this I Pad Air and was downloading some games and it is still in waiting mode with the circle continually going in circles. I need to delete these and do not see how to do this. also need to know where I go to delete history

    I am new to this I Pad Air and was downloading games and is still showing in waiting mode with the circle continually going Arian. I want to delete but unable to figure ot how. also needing to delete history, need a lot of help

    Hey Carolyn1951,
    Thanks for the question. I understand you have a few apps that only display "Waiting". The following is a past discussion that dealt with a similar issue, the answer may help you as well:
    App updates won't download on my...: Apple Support Communities
    https://discussions.apple.com/thread/4111336
    Try tapping the App, so that it changes to Paused instead of Waiting, then tap it again to resume the install.
    Make sure you don't have any paused downloads in other apps either, like the App Store or iTunes Store.
    If that doesn't do it, try resetting or restoring the iPhone.
    via whatheck
    Thanks,
    Matt M.

  • Add new fields on the header screen of COR1

    Hi Experts,
    I am new to this type of work, please help me in doing....
    My requirement is, to add one field on the header details of the COR1 from a Z table.
    Can anyone please tell me how to handle this.
    I searched the regarding this in SDN but i had not got any solution.
    Can any one please tell me how to handle this(screen shots will be more helpfull).
    Please take it as priority.
    Thanks in advace,
    Kruthik
    Edited by: kruthik_06 on Jun 20, 2011 9:04 AM

    Hi all,
    I need to know if is it possible to add a custom field in COR1 for process order. I searched forum for something about this, but cannot find anything.
    can anybody please suggest me something ?
    thanks
    Kruthik

  • HT1296 I am new at this I have music on my iTunes on pc but how do I get it to stay in my music on iPad ?

    I am new at this I have music on my iTunes on pc but how do I get it to stay in my music on iPad ?

    Sync with iTunes. All content in iTunes can be synced to the iPad this way - select the various tabs in iTunes and select the content within each tab that you want to sync.
    Connect the iPad to the PC and launch iTunes.
    Click on the iPad name on the left side under devices.
    Click on the Music Tab on the right.
    Click on all of the albums or playlists that you want to sync - or the entire library if you like.
    Click on the Sync Music Heading.
    Click on Apply in the lower right corner of iTunes
    iOS: Syncing with iTunes.
    http://support.apple.com/kb/HT1386
    This might help as well.
    http://www.apple.com/support/ipad/syncing/
    And this as well.
    http://manuals.info.apple.com/en/ipad_user_guide.pdf

  • Generate a new version for PO header text change

    Hi,
    Could you pls instruct me the configuration settings to generate a new version for PO header text change? I secceeded in other fields, e.g. Inco Term, Order Qty, Delivery date, but failed in header and Item  Text.
    I added STXH_TDNAME but it doesn't work. Thanks!
    Regards
    Jully

    Hi,
    Thank you very for the feedback.
    The 4th point of note 664928 says "This is not a change to print-relevant texts". I assume there is a way to configure the text as a "print-relevant text" and I confirmed my texted is configured for printing for operation 1 & 2 (create and change order) in:
    MM > Purchasing > Messages > Texts for Messages > Define Texts for Purchase Order.
    Still not working. Any idea? Do I miss anything? Thanks!
    QUOTE of note 664928 :
    Question:
    You change the texts in a purchase requisition or a purchasing document. Why does the system not generate a new version?
    Answer:
    This is not a change to print-relevant texts.
    Regards,
    Jully

  • Throw new MessagingException("Cannot load header.");

    I often see this error thrown for one mail provider
    if (is == null)
    throw new MessagingException("Cannot load header.");
    Doing a refresh of teh inbox solves it. What/how/why does this happen?

    I am using Javamail 1.4.3
    Below is what I get when it is working...it happens sporadically, so I'll need to wait if it looks any different when that error is thrown:
    04-23 19:16:32.315: INFO/System.out(17273): A0 CAPABILITY
    04-23 19:16:32.502: INFO/System.out(17273): IMAP DEBUG: AUTH: XYMCOOKIE
    04-23 19:16:32.502: INFO/System.out(17273): IMAP DEBUG: AUTH: XYMCOOKIEB64
    04-23 19:16:32.502: INFO/System.out(17273): IMAP DEBUG: AUTH: XYMPKI
    04-23 19:16:32.502: INFO/System.out(17273): IMAP DEBUG: AUTH: XYMECOOKIE
    04-23 19:16:32.510: INFO/System.out(17273): DEBUG: protocolConnect login, host=imap.mail.yahoo.com, user=myusername, password=<non-null>
    04-23 19:16:32.510: INFO/System.out(17273): A1 ID ("GUID" "1")
    04-23 19:16:32.744: INFO/System.out(17273): A2 LOGIN myusername mypassword
    04-23 19:16:33.044: INFO/System.out(17273): A3 CAPABILITY
    04-23 19:16:33.276: INFO/System.out(17273): IMAP DEBUG: AUTH: XYMCOOKIE
    04-23 19:16:33.276: INFO/System.out(17273): IMAP DEBUG: AUTH: XYMCOOKIEB64
    04-23 19:16:33.276: INFO/System.out(17273): IMAP DEBUG: AUTH: XYMPKI
    04-23 19:16:33.283: INFO/System.out(17273): IMAP DEBUG: AUTH: XYMECOOKIE
    04-23 19:16:33.283: INFO/System.out(17273): A4 LIST "" INBOX
    04-23 19:16:33.544: INFO/System.out(17273): DEBUG: connection available -- size: 1
    04-23 19:16:33.549: INFO/System.out(17273): A5 SELECT Inbox
    04-23 19:16:33.799: INFO/System.out(17273): A6 FETCH 7 (UID)
    04-23 19:16:34.041: INFO/System.out(17273): A7 FETCH 7 (ENVELOPE INTERNALDATE RFC822.SIZE)
    04-23 19:16:34.377: INFO/System.out(17273): A8 UID FETCH 16,14,4,3,2,1 (UID)
    04-23 19:16:34.608: INFO/System.out(17273): A9 FETCH 7,6,5,4,3,2,1 (FLAGS)

  • Got new computer, can someone tell me how to transfer itunes library from old computer to new computer.  Please go step by step, i am new at this.

    got a new computer, need help transferring itunes library from old computer to new computer.  i am very new at this please give instructions step by step.

    Hi 45atopp,
    Thanks for visiting Apple Support Communities.
    The article at the link below describes a few methods and provides some detailed instructions on how to transfer your iTunes library to your new computer:
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/ht4527
    Best,
    Jeremy

  • I am new to this site.  this is a test

    I am using snow leopard OS ...ever since an update a few days ago I have not been able to get into my mailbox. When I click on mail it tells me I cannot use mail 4.5 with my OS. Someone said I have to upgrade to lion ...is this true??
    I am new to this site...........I hope this works
    Thank you

    Sorry, I must sound like a dope. I have never done this before. The part where I say (this is a test) is because I did not know if my question was going to show.
    Thanks to anyone who can help.

  • HT204266 Every time i try downloading anything from app store it gives an error message saying "This is not a Test User account. Please create a new account in the Sandbox environment."  and i didn't use jailbreak and never downloaded cracked software

    Everytime i try to download from app store it gives me an error message saying "This is not a Test User account. Please create a new account in the Sandbox environment." although i never used jailbreak or downloaded cracked software

    Yep, I've been reading through other threads on lots of different sites over the last few hours and I can't seem to find a working solution, even though some seem to have worked for other people.
    Most of them hadn't been updated in a while so I made my own post to see if anyone has anything new.

  • XDCam HD/Prores/DigiBeta and my head hurts!

    I have been doing research and have drawn some of my own conclusions but some input from those more experienced than myself would be gratefully received.
    I have a interview shot on XD Cam Disc 1080/25p winging its way to me, usually we Shoot in Digi Beta and HDV is the only HD format we have had the pleasure?!? of using thus far.
    I will be hiring a XDCam reader (probably D1) so I can transfer the files.
    Q1/ Do I/Can I transcode straight to Prores using Log and Transfer or do I have to do this using Compressor afterwards?
    Q2/ Is it worth transcoding to Prores as this is a stand alone interview and shouldn't need to be mixed with any other footage?
    Q3/ We are going to have the situation more and more where crews say "sorry no Digibeta" or "that'll cost you more". I can see my HD footage coming to be in all flavors (but hopefully 1080/25p).
    Due to this I see Prores as our most likely way forward as quite often the different footage will be put into one program.
    I was looking at getting a AJA io and then hiring decks depending on what the footage is shot on and go directly to Prores that way. But I understand that you might be stuck with 29.97 frame rate when playing into the AJA through HDMi?
    Opinions on best workflow going forwards would be gratefully received, my head hurts.
    Thanks
    John E

    Hey John
    XDCAM HD is a fully supported FCP native camera codec, no need to fear it at all ... if you like you can edit it directly in to a ProRes timeline and get full quality realtime previews, or you can edit it native and set rendering to ProRes for faster results with better potential quality if doing a lot of effects work, or you can just edit and render native ... its all very easy and has been since around FCP 5.1.2. When you've locked edit you can export as Uncompressed, ProRes or whatever other delivery codec you prefer (including XDCAM HD although that would be an odd choice).
    I will be hiring a XDCam reader (probably D1) so I can transfer the files.
    Not a good idea as the D1 is SD only I think ... get a U1 if you can, or rent a player "deck" like the PDW-F30 or better.
    Q1/ Do I/Can I transcode straight to Prores using Log and Transfer or do I have to do this using Compressor afterwards?
    No need whatsoever to do it all (see above). But if you did want to do it anyway then you would have to do it post import ... no direct to ProRes transcode on ingest with XDCAM HD (XDCAM EX yes, XDCAM HD no).
    Q2/ Is it worth transcoding to Prores as this is a stand alone interview and shouldn't need to be mixed with any other footage?
    Not worth it at all unless your goal is to hoover up disc space and man hours unnecessarily.
    Q3/ We are going to have the situation more and more where crews say "sorry no Digibeta" or "that'll cost you more". I can see my HD footage coming to be in all flavors (but hopefully 1080/25p).
    Due to this I see Prores as our most likely way forward ...
    ProRes as intermediate is fine. As for hiring decks, if you are imagining your future needs then you should really be assuming tapeless ingest/workflows rather than anything tape based, that said an AJA Io HD (not AJA Io) would be a great device to have on hand as would Matrox MXO2 and other I/O devices ... and no, I think you have misinterpreted that frame rate restriction, its not the case at all.
    Hope it helps
    Andy

  • Trying to download new Garmin map which may take a few hours and Firefox times out after only a small portion has been downloaded, unless I sit here and move the mouse occationally. Can we stop Firefox from timing out?

    Trying to download new Garmin map which may take a few hours and Firefox times out after only a small portion has been downloaded, unless I sit here and move the mouse occasionally. Can we stop Firefox from timing out? edit

    Quote from: lcwhitlock on 04-April-14, 13:44:09
    Hello darkhawk,
    Thank you for the recommendation.  I somewhat understand what a MS DOS disk is, but I'm not sure how to go about creating one. I've seen where you can use a program, like Rufus, to create a usb one  - but I'm leery about using 3rd-party programs (especially ones I'm not familiar with). I've come across a couple of 'how-to' tuts, but they didn't clarify what files (if any) I would need to include on the disk (for my particular situation). Right now I don't have any blank cds, nor any extra flash/thumb drives - wish I did, but hadn't needed these for years. There has only been one other time where I needed to re-install Windows, but that was over 15 years ago - I did it through BIOS, reformatting my drives, and then reinstalled via the Windows XP disk. Windows 8 is an entirely different breed, which has left me feeling a bit stumped, at times. If there was a way I could perform it (successfully), similar to the first time I did it years ago, I'd give it a try - but at the same time, I'm a bit reluctant, because if it doesn't work, then I'm stuck without any internet access to get further help.
    Ask and ye shall receive. This should be doable in Windows 7 and Windows 8 on another PC. I recommend using a USB Flash drive like in this tutorial, but I'm sure you could use something else.
    If you want, you could also use Hiren's BootCD to make a bootable CD with many options and programs on it (I keep one, just for certain situations) that will allow you to do the same things.
    http://www.hiren.info/pages/bootcd
    Also very useful for sorting out virus's as long as it's downloaded and made on another PC that is virus free......

  • Will there be a new iPod this fall?

    I really need a new iPod this fall, I can't wait until next year(if that's when it will be refreshed). Please tell me a new one will come out this fall.

    Sorry for disappointing but a new ipod will not be out this fall as ipod 5g has already been launched few months back so you gotta wait for sometime

  • Overload resolution failed because no accessible "New" accepts this number of arguments.

    HI
    Just need a little help figuring this error out.  The New Font is giving me trouble.  Overload resolution failed because no accessible "New" accepts this number of arguments. I don't know what I'm doing wrong here.  Any help would
    be greatly appreciated. 
    PrivateSubmnuPrint_Click(sender
    AsObject,
    e AsPaintEventArgs)
    HandlesmnuPrint.Click
    DiminputFile
    AsStreamReader  
    'Object variable
    DimintX
    AsInteger=
    10        'X coordinate for printing
    DimintY
    AsInteger=
    10        'Y coordinate for printing
    Try
    'Open the file
                inputFile =
    File.OpenText("dataFile.txt")
    'Read all the lines in the file
    DoWhileNotinputFile.EndOfStream
    'print a line from the file
                    e.Graphics.DrawString(inputFile.ReadLine(),
    NewFont,
    CSng(("Courier")),
    10, FontStyle.Regular,
    Brushes.Black, intX, intY)
    'Add 12 to intY
                    intY += 1
    Loop
    'Close the file
    Catchex
    AsException
    'Error message for file open error
    MessageBox.Show("Error:
    Could not open file.")
    EndTry
    EndSub
    Thanks in Advance!

    Elise,
    Please modify your post and this time around, instead of showing the code as text, click the button in the header that has a "<>" in it to use the Code Block tool. Select VB from the combo, the paste your code there, then finally post it
    here. It'll be a lot easier to read that way. :)
    Also though, please indicate which line is showing the compile error.
    Do you have Option Strict set to On? You should if not.
    Still lost in code, just at a little higher level.

Maybe you are looking for

  • How do I find the size of a video file in iTunes store?

    Is there any way to find out how big a video file is before I download it to my computer? I see that movies show the file size in the product description, but what about episodes of a TV show? Or a complete season? Or a video in iTunes U? I tried "ri

  • Error in the tcode KOK3

    Hi gurus, im getting the following error in the tcode KOK3 (Collective Disp. Internal Orders , part of FI/CO package, KAUF), after applying the new support pack. Error is as follows: System error: Error in routine T021Q_SON_LESEN SAPMKAUFORC 0 Messag

  • 60 GB Video Ipod ..

    So basically, My warrenty just ran up a few days ago. My ipod hard drive crashed, I went to the Apple Store and they said their was nothing they could do for my 400 dollar ipod. How unfair is that? I contacted Apple and they told me theirs a year war

  • Illegal seek?!?!?!

    I tried downloading the trial of Photoshop Elements 11.  After waiting forever it said it couldn't install it because it was an "illegal seek".  I had to click okay and now it has been saying "extracting....this may take a while".  This has been goin

  • Transferring 3GS from PC to MBP

    Hi all My mother has a 3GS which she has synced to her Windows 7 PC via iTunes for Windows. She has recently got a 13" MBP with Snow Leopard (upgrading to Lion soon though!) and wants to sync her iPhone to that. Her contacts are on the PC's own Addre