Is there any way to resize already loaded preview when widget is resize?

Is there any way to resize already loaded previews when panel widget is resize? <br />Actually, I have already a lot of preview images loaded on my preview panel's widget. when my preview panel is resize, is there any way to resize already loaded preview images without creating new preview images. <br /><br />ErrorCode CMPSImageListDataView::CreatePreview( const IDFile& previewFile, uint32 width, uint32 height, uint8 backGrey ) <br />{ <br />InterfacePtr<IPMStream> fileStream( StreamUtil::CreateFileStreamRead(previewFile) ); <br />if(!fileStream ) return kFailure; <br /><br />InterfacePtr<IK2ServiceRegistry> serviceRegistry(gSession, UseDefaultIID()); <br />if(!serviceRegistry) return kFailure; <br /><br />int numHandlers = serviceRegistry->GetServiceProviderCount(kImportProviderService); <br />for (int i = 0; i < numHandlers; i++) { InterfacePtr<IK2ServiceProvider> provider( serviceRegistry->QueryNthServiceProvider(kImportProviderService, i)); <br />InterfacePtr<IImportProvider> importProvider(provider, IID_IIMPORTPROVIDER); <br /><br />if (importProvider && importProvider->CanImportThisStream(fileStream) == IImportProvider::kFullImport) <br />{ <br />InterfacePtr<IImportPreview> preview(importProvider, IID_IIMPORTPREVIEW); <br />if(preview) <br />{ <br />bool16 reallocateNeeded = kTrue; <br />if( (this->m_fCachedImHeight == height) && (this->m_fCachedImWidth == width)) <br />reallocateNeeded = kFalse; <br /><br />if(reallocateNeeded) <br />{ <br />this->DeleteBuffers(); <br />m_fpCurAGMImage = new AGMImageRecord; <br />memset (m_fpCurAGMImage, 0, sizeof(AGMImageRecord)); <br />m_fpCurAGMImage->bounds.xMin = 0; <br />m_fpCurAGMImage->bounds.yMin = 0; <br />m_fpCurAGMImage->bounds.xMax = width; <br />m_fpCurAGMImage->bounds.yMax = height; <br />m_fpCurAGMImage->byteWidth = 3*width; <br />m_fpCurAGMImage->colorSpace = kAGMCsRGB; <br />m_fpCurAGMImage->bitsPerPixel = 24; <br />m_fpCurAGMImage->decodeArray = 0; <br />m_fpCurAGMImage->colorTab.numColors = 0; <br />m_fpCurAGMImage->colorTab.theColors = nil; <br /><br />this->m_fDataBuffer = new uint8[((m_fpCurAGMImage->byteWidth) * height)]; <br />ASSERT(this->m_fDataBuffer); <br />m_fpCurAGMImage->baseAddr = static_cast<void *>(this->m_fDataBuffer); <br /><br />this->m_fCachedImHeight = height; <br />this->m_fCachedImWidth = width; <br />} <br /><br />::memset(m_fpCurAGMImage->baseAddr, backGrey, (m_fpCurAGMImage->byteWidth) * height); <br /><br />if (m_fpCurAGMImage->baseAddr) <br />{ <br />AcquireWaitCursor busyCursor; <br />preview->Create24bitRGBPreview( (uint8*)m_fpCurAGMImage->baseAddr, width, height, fileStream, kTrue ); <br />m_fCurImageSysFile = previewFile; <br /><br />return kSuccess; <br />} <br />} <br />} <br />fileStream->Seek(0,kSeekFromStart); <br />} <br />return kFailure; <br />}

Really Thanks!! T Schneider<br />How can I do that matrix?<br />Would you mind....?<br /><br />                    <br />PMReal imageWidth = ( m_fpCurAGMImage->bounds.xMax - m_fpCurAGMImage->bounds.xMin);<br />                    <br />PMReal imageHeight = ( m_fpCurAGMImage->bounds.yMax - m_fpCurAGMImage->bounds.yMin);<br />                    <br />PMReal xOffset = frame.GetHCenter() - imageWidth/2;<br />PMReal yOffset = frame.GetVCenter() - imageHeight/2;<br /><br />gPort->translate(xOffset, yOffset);<br />               <br />InterfacePtr<ITransform> iTransform(this, IID_ITRANSFORM);<br />PMMatrix theMatrix = iTransform->GetInnerToParentMatrix();<br /><br />.??????????????????????????????.<br /><br />ASSERT(m_fpCurAGMImage);<br />gPort->image(m_fpCurAGMImage, theMatrix, 0);

Similar Messages

  • Is there any way to trace my session even when i forgot to fire  spool

    Is there any way to trace my session even when i forgot to fire
    spool [file name] .................

    No, not as fa as I know.
    Traces of a session and spool are not related.
    You need to set an audit trail to trace a session.
    Spool simply spools to a file your work in SQL*Plus.
    Hope this Helps

  • Is there any way to fill long loading gap between splash screen and application home page?

    Recently I have developed my first MAF app. This app is with basic design with some page re-directions, no web services/java script is used but when I start app first time then there is a long white gap after splash screen till loading application home page. Is there any way to eliminate this gap?

    User, tell us your jdev version, please!
    Check the hints given in this thread Increase Adf Application Load Time
    When a page loads all iterators are executed whihc can take some time if you have many of them on the page retrieving many rows. So what is on your home page?
    Timo

  • Iphone 3GS was dropped and will not turn on or respond to USB connection.  Is there any way to extract the data off when it is not responding so that I can restore to my new phone?

    The phone is physically intact, but you can see the LCD is cracked behond the glass. I have tried plugging it in, tried putting it on the charger, and resetting it using the off and home buttons, bit response. I don't need the phone to work, but I do need to be bale to back it up in order to restore to the new phone.  Is there any way to extract the data or back up the hard drive without repairing the phone?  Just curious what my options are before I spend cash trying to fix the phone and find out there was another way to get the data.  Any thoughts here or should a good repair shop being able to create a backup somehow?

    Im not going to be much help because I don't know of anything else to besides take it somewhere that fixes electronics and see if they can get it off some how maybe if you take it to an apple store they can do something to get your information.

  • HT4314 I have two games Tribez and Tribez and Castles on my iPad. I have to send my iPad Air back for repair to crack glass. Is there any way to save the games., for when I have to restore back up

    I have two games tribez and tribez and Castle. As my new iPad air has a cracked screen I have to send it back for repair. I have to do a reset and restore backup when I get it back. Is there any way to back up above games. On tribez I have reached level 99 and will be annoying to starts again.

    Do you have a computer with iTunes on it that you have associated the iPad with?
    If the answer is yes, simply set iTunes up to back up the device locally, fully sync the apps, photos, movies, etc. A copy of everything, including the config of the device and all your settings (scores) will be made on the computer's drive. This even includes a backup copy of all the apps. When you get the replacement device (probably a refurbished blank unit), a Restore from that backup will totally reconstruct what you have today.
    If the answer is no, you will have quite a bit more work to do in order to get back to the original state that the iGadget is currently in (minus the crack).

  • HT1414 is there any way to track down my iphone when i have lost it?

    I lost my iphone and i have the "find my iphone" app and thought that it may work from my mac but I am not finding a way to do that, is there any way to track down my iphone from my mac?

    On your Mac, login to iCloud.com, & try to locate your phone. This requires that Find My Phone be setup/activated, on your phone, before you lost it. It also requires your phone be turned on & connected to the Internet. There is no other way to locate a lost iPhone, other than physically looking for it.

  • Is there any way to popup a dialog box when user try to create a new folder?

    Hi
    I want to add a pop up dialog ,using Flex custom UI dialog, when use click "New Folder" in Adobe Bridge ? Then user can input folder name in this dialog.
    Or I want to put this way,  is there any way to display Flex custom UI dialog and get user's input in my CreateDirectoryHandler implementation?
    The Adobe Drive SDK doesn't elaborate clearly about how to interact with custom UI dialog.
    Thanks a lot!

    Hi jmc,
                 See the links below.This will be helpful to you.
                 http://forums.ni.com/t5/LabVIEW/A-picture-as-a-dialog-box/td-p/236851
                 http://forums.ni.com/t5/LabVIEW/Dialogbox-with-user-input-and-image/td-p/1601214
    Thanks as kudos only

  • Is there any way to turn off keypad sounds when making a phone call?

    I am a new user to iphone....is there any way to turn off sounds of keypad when making a manual phone call of someone not in address book?
    Thanks

    If I understand the question correctly, it is not about turning off keyboard clicks, it's about silencing the beeps made when manually keying in a  phone number. With keyboard clicks turned off, the beeps still sound when keying in a phone number. If I'm reading the iPhone User Guide correctly, it explains how to turn off keyboard clicks but not how to silence the   beeps when keying in a phone number. The only way I have found to silence the beeps is to put the phone into silent mode.

  • HT201365 Is there any way to find my lost Iphone when its switched off ?

    hi guys
    my name is tahir
    i lost my iphone recently week
    i dont remember that where i lost it in my car or in a hotel but the bad news is it is switch off
    so i wanted to know that is there any way to find my iphone when it is switched off ?

    No, there is not.
    What To Do If Your iDevice or Computer Is Lost Or Stolen
    iPhone, iPod Touch, and iPad
    If you activated Find My Phone before it was lost or stolen, you can track it only if Wi-Fi is enabled on the device. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. iCloud- Use Lost Mode
      6. What to do if your iOS device is lost or stolen
      7. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      8. Find My iPhone
      9. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Mac Computer
           Find My Mac can be used from Find My Phone at iCloud.com and via Find
           My Phone on your iDevice.
          The following is third-party anti-theft software:
               1.  STEM 2.1
               2.  MacPhoneHome 3.5
               3.  MacTrack 7.5.0
               4.  VUWER 1.7
               5.  Sneaky Bastar* 0.2.0
               6.  Undercover 5.1.1
               7.  LoJack for Laptops
               8. Hidden 2.0
               9. Prey 0.6.2

  • Is there any way to force jvm load a new class?

    I write a standalone command line program. This program calls a function which I added to an existing class. the existing class has run run for a while by other processes.
    When I run my command line program, it can not find the function I added to the existing class. But I am 100% sure I have overwrote the existing class file with my new copy. It looks like the old class file is still in effect.
    How can I instruct the JVM to load my new class file, not using the old one(maybe it is cached in memory, and didn't get refreshed)
    Welcome any suggestions. I have run out of idea. (BTW: It is infeasible for me to restart the computer)

    Classes are loaded by an object called a ClassLoader which stores all the classes it loads in some kind of internal Map object. If you ask the same ClassLoader for a class it's already loaded it will given you the old one.
    The only way to drop a class is to drop the ClassLoader which loaded it and create a new one to load a new version.
    What you need to do is to put the class file in question is a directory or jar which isn't on the class path. And make sure that no class file of the same name exists on the classpath (because that will be loaded in preference).
    Then you create a java.net.URLClassLoader pointing to the directory or jar (use FIle.toURL() to turn a file into a URL).
    Then call loadClass on that to load your class file. Then you'll probably have to call newInstance() on the class object to create an instance.
    Of course, if new method signatures are added you'll have to access them using Method objects, since they won't be know about at compile time.

  • Is there any way to resize videos that were done in a larger format?

    I recently took several videos and didn't realize that in order to send them, I had to change the size to QVGA. After several frustrating attempts to send by phone and email, I gave up.  My question is this:  Is there anyway to downsize a video after it is recorded in a larger format?  I tried video editing apps and they didn't work at all as far as resizing. Any help will be appreciated as these videos cannot be redone. Thank you.

    Hey,
    Check out the article below.  It might give you some ideas.
    http://mobile.pcadvisor.co.uk/how-to/photo-video/3457201/how-send-videos/
    Doc

  • Is there any way to change page-loading status indicator?

    i dig firefox 4 for the most part. i customized the layout to my liking. what i can't stand and can't figure out how to modify is the little page-loading status indicator. i absolutely hate the gray captive-ball lookin' thing that runs counter-clockwise and then turns around and becomes a green clockwise-turning circle. HATE IT. i see i can get the old-school status indicator (clockwise-turning circle of dots) but even if that's working in the toolbar the hideous new one is churning away on the tab. i know this is simply a matter of aesthetics and not really a problem, but... MY EYES... my god, my eyes... make it stop...

    No.

  • HT1296 Is there any way you can down load music from your computer to your iphone without going through itunes

    can you down load music to your iphone 3gs from your lap top with out going through itunes ?

    Called iTunes Match:
    http://www.apple.com/itunes/itunes-match/
    iTunes purchased content you can download to your phone antime you wish, match not required.

  • Is there any way to locate an iPod touch when find my iPhone has been downloaded to it but not switched on this same iPod touch?

    I recently purchased my daughter an iPod touch, downloaded find my iPhone on the fourth day and she lost it on day 5 before I could turn on the app.  I did not know if there is a way to activate the app remotely or another solution.  Any suggestions?

    Sorry to say... No. There is no way to turn on the app remotely.

  • Is there any way to avoid downloading SD version when purchasing HD content?

    I noticed that it is next to impossible to opt-out of downloading the SD content when the HD version is purchased. Considering I am playing the media on devices that can support the HD version, the SD version just uses up my available bandwidth at a cost of $2/GB. I have been finding myself using free WiFi just to avoid the data charges and it seems redundant.

    No.

Maybe you are looking for

  • Iphone for VGA Video Out not working

    We have the Iphone/iPad VGA to Monitor connector. We tested it with 3 different iPhone 4 phones... It worked on 2 of them, but the 3rd woudn't work. What possible reason would it not work? The 3 phones had software of 4.3 and higher...

  • Problem with IE 11 mshtml document.

    I have two systems that are identical.  When I run the following code in powershell.  The Document is mshtml.HTMLDocumentClass.  But when I run the same code on the other system.  The Document is System.__ComObject. Why is the Document different on t

  • Query Assistance Needed - Please

    Monthly Training Table >> monthly_training.record_id (int) >> , monthly_training.trng_year (int) >> , monthly_training.trng_month (int) >> , monthly_training.trng_title (varchar) >> , monthly_training.trng_code (varchar) >> , monthly_training.trng_na

  • How to get this application functionality? any ideas please..

    HI all, I have an application developed using Oracle Developer release 6, and Oracle Database 8i. my company changes the name very frequently / opens new firm very frequently so, some times i have to maintain all the companys data seperately. its lik

  • HOW TO RELEASE BAPI

    Hi Dear all I get a problem regarding bapi,how to release bapi, I am getting error "OBJECT TYPE SHOULD BE TRANSPORTABLE" how to make bapi transportable. Thanx in advance Regards Poonam