Working with images - Rotation and Movement

Hello there,
I have this problem that I cant seem to solve:
I need to be able to move an image arround and there are restrictions to where image should be able to move: at any given time, when dragging, image should always cover whole body of a given border_container, this is simply achieved by sending a rectangle to the startDrag function, which will specify where the image is allowed to move. I got that part right, and its working, the problem arrise when I try to rotate the border_container (with the image), it should still be only possible to drag image so it all the time covers the body of the border_container, but I don't know how to do it.
Code I use looks something like this:
image.startDrag(getImageDragRectangle());
protected function getImageDragRectangle():Rectangle
     return new Rectangle(
          this.width-image.contentWidth + x,
          this.height-image.contentHeight + y,
          Math.abs(this.width-image.contentWidth),
          Math.abs(this.height-image.contentHeight));
Edit: image is not inside the border_container (not sure how relevant it is..)
Could anyone help me out here and give me any hints or suggestions how I could fix it?

You would have to write the image to a temporary file so that the browser could read it off the server. Browsers do not have access to the database, so there's no way to get the image from the database to the browser without using some sort of interim solution.
~Jer

Similar Messages

  • How Mail work with image attachements and HTML image ?

    Hello,
    I'm writing an application that sends html emails with images to Mail.app. When Mail display the mail, everything is okay, images are correctly embedded in html code, using inline attachements.
    But there's still a problem : The images are also displayed at the bottom of the email, as file attachements. I know that Mail's template can hide these attachements, but I cannot reproduce it when sending my own emails.
    Is there anybody here that already get such problem and find the solution ? (apparently, Windows User get the same problem with Outlook, but they have an API under Windows...I'm using my own email API..)
    David

    David can you share how you managed to get the inline images to work. I've got the general idea of how to do it. But I do not seem to be able to change the Content-Type to multipart/mix. Can you point me in the right direction. Should the Content-Type definition and everything else be part of the body? Or should some headers (namely the multipart) be defined in the mailto URL format?
    In other words do you do: mailto:?subject=test&Content-Type=multipart/mix;%20boundary=myBoundary&body=--m yBoundary etc...
    Or id it: mailto:?subject=test&body=Content-Type=multipart/mix;%20boundary=myBoundary%20- -myBoundary etc..
    Neither seems to work for me so I am really stuck. But knowing what the right way is would help me figure things out a bit better.
    Thanks in advance

  • MSI GT70 laptop - can this laptop work with 3D games and movies?

    I don't see it indicated anywhere but I was wondering if this was possible..

    It should, but not on his own screen, but extent to addiction 3D capable display.
    http://www.techjailbreak.com/msi-gt70-0ne-255fr-gaming-laptop-complete-review-and-specs/
    Quote
    Finally, note that the GTX 680M is compatible with all technologies Nvidia (PhysX, Optimus, etc..) but some of them (such as 3D Vision) cannot be used on the machine, for lack of suitable 3D display. However, if you have the glasses and a 3D Vision screen, nothing prevents you from connecting the MSI GT70 via HDMI and 3D gaming (720p only).

  • Rotate and move image

    Hi,I'm trying to make a game kinda like gta or asteroids whereyou have top view. I am using an image to be the player and, I want to rotate that image using left and righ keys and with the up key move the player to the direction whereit is rotated.
    The problem is that i cannot display the rotation and movement at the same time.
    I'm using a code like this.
    AffineTransform transform = new AffineTransform
    public void checkGameInput(){
         float velocityX=0;
         float velocityY=0;
         if(rotateLeft.isPressed()){
               angle1+=angle2;    
              transform.rotate(-angle2, player.getWidth()/2, player.getHeight()/2);
    // similar for rightkey
       if (moveFront.isPressed()){
               velocityX=_Player.SPEED*Math.cos(angle1),
               //same for velocityY
    }the problem is when i try to print on the sceen.
    I can update position
    public void draw(Graphics 2D g){
    g.drawImage(player. getImage(), Math.round(player.getX()), Math.round(player.getY()),null)  // player.getX(9 returns position of playeror update rtation
    public void draw(Graphics 2D g){
    g.drawImage(player.getImage(),transform, null);is there a way to join this to drawImageso I can rotate ane move the rotatyed image?
    thank you very much for any kind of help.
    Edited by: Muninn on Nov 29, 2008 3:13 AM

    Use the transform to do both rotation and translation (multiple transform operations can be concatenated)
    transform.rotate(-angle2, player.getWidth()/2, player.getHeight()/2);
    transform.translate(player.getX(), player.getY());

  • Why does the color red change from working with images in develop to library?  The color gets lighter and nothing shows a change on histogram but visually you can see it.

    Why does the color red change from working with images in develop to library?  The color gets lighter and nothing shows a change on histogram but visually you can see it.

    That's probably a broken display profile. The conversion from Library's Adobe RGB is different than the conversion from Develop's linear ProPhoto, so if there's a problem with the display profile it can show up this way.
    Recalibrate, or if you don't have a calibrator use sRGB. If your monitor is a wide gamut model use Adobe RGB.
    Assuming Windows, change it in Control Panel > Color Management > Devices, and relaunch Lightroom so that it can pick up the new profile at startup:

  • Lightroom 3 Beta-Image Rotate and Crop Tool

    Good Morning Adobe,
    First of all let me say Lightroom 3 is fantastic! I do have a couple of suggestions that might make the image editing more efficient. I find that I use the image rotate and crop tools frequently and think that possibly locating these 2 features below the image in the tool bar with the loupe view/zoom fit/before and after will allow the user to edit the images more efficiantly.
    I believe that this is an incredible program and can't wait to see the finished product!
    I will offer more suggestions as they evolve.
    Thank you Adobe! You are the BEST!
    D.A.    

    Thank you...I discovered this answer online from another post last night and tried it.  (Since I didn't re-size the thumbnails, I wasn't aware that you could do this.)  After re-starting Lightroom and my computer, the crop issue corrected itself.  Thank you very much for your response.  It worked!

  • I have upgraded to Mountain Lion and have found that some of my software no longer works, notably Image Browser and also the Epson Scanner Perfection 3490 software. Is there a 'patch' or way to allow me to use these programmes especially the scanner.

    I have upgraded to Mountain Lion and have found that some of my software no longer works, notably Image Browser and also the Epson Scanner Perfection 3490 software. Is there a 'patch' or way to allow me to use these programmes especially the scanner.

    Apple discontinued support for PowerPC apps with Lion, I think, so you're out of luck there. No patch coming, unfortunately. Best to upgrade whatever old applications you have or, since it seems like you're using some relatively old software, scout around for replacements that give you the functionality you need.
    Go to Apple menu > System Preferences > Print & Scan and select your scanner from the list--if it's not there you'll need to add it (start with the little plus icon). Once you have it in the list you can click on the Open Scanner button and a pretty barebones scanner driver will load for you. But Image Capture (as mentioned previously), found in your Applications folder, will probably do the job as adequately, or better, than your old scanner software.

  • How to work with images in Keynote

    Hello,
    I'm a Keynote newbie and am having problems working with images. My basic question is, do I have to resize my .jpgs every time I put them in Keynote? It seems that if I choose to Insert>Choose a .jpg, it will fill my entire presentation and I have to resize. If I drag a .jpg, from iPhoto using the Media browser button, the .jpg will land squarely on the part of my canvas that's meant for the image (in the photo-with-title master slide). BUT, the image will just be masked and I once again need to resize it to fit the designated area.
    My second question is, if resizing is a fact of life in Keynote, are there any shortcuts which would allow me to resize quickly/automatically to the size of the image area on the canvas?

    I think Keynote inserts images in their native size, meaning that if you have a big jpg to begin with, it'll appear big on the slide. If you can't adjust the size of the images you have to begin with (for instance, you could easily adjust their size in a program like GIF Coverter--which would actually allow you to resize several at a time--before you begin to deal with Keynote at all) there is another solution to make it easier. Adjust the magnification of the slide to 50% so that when you insert the big images you can find the corners easily.
    I should add that I've only ever used Keynote 1. But Keynote arrives (inside a new iMac) as soon as tomorrow.

  • I have an older HP5550C flatbed scanner that works with 10.5 and 10.6 but not on my new iMac running 10.7

    I have an older HP5550C flatbed scanner that works with 10.5 and 10.6 but not on my new iMac running 10.7. Surely there is software that will allow older scanners to work on OS10.7. My MacBook Pro runs 10.6 and the

    Although the HP Scanjet shows up in the system profile for the computer it is generic and is not configured (as in screen shot).  It also does not show up in the ;ist of pritnters, scanner when I open Image Capture.  I can't load the software that came with the printer because it is out of date so that would make it impossible to configure the scanner on the new iMac. see below:  Too bad there isn't some generic profile I could load that would cover the 5550c. I have a new all in one printer-fax-scanner but the old one can scann in slides and negatives which I have.

  • Crystal Reports Version to Work With Vb 6 and VS 2008

    Hi,
    We have some legacy VB 6 applications which are too large to port over to Visual Studio which use Crystal 7.0
    Recently at one site there have been problems with another application which uses a new version of Crystal. Either one or the other will work but not both. This might be solved by ugrading to Crystal XI R2 ( I believe that newer versions can run side by side). However, we also have new projects starting that are to be developed in VS 2008. As I understand it, Crystal XI R2 will not work with VS 2008 and CR 2008 will not work with VB 6.
    We really donlt want to have to buy both versions !!
    Anyone got any ideas ?
    Many Thanks
    Paul

    CR 7 did not support side-by-side installs. Likely what is happening is the your app and the other app is loading crpe32.dll from the \windows\system32 folder. Which obviously will not support each other. This is the only dll that is common among all versions of CR, see below for more info, and that due to it's location can cause issues like this. Newer versions from 8.5 do version checking and athough the dll's have the same name XI R2 will not load other versions, there are exceptions. The exceptions are UFL and some legacy database drivers that will work in any and all versions.
    A few possible work arounds, in your app do version checking when loading crpe32.dll or specifically if crpe32 is residing in a memory space that some other app has loaded it and Windows will share, check the version of the dll and if in your case it's not 11.5.x.x. then pop up a message indicating they must close the other Crystal app before continuing.
    Move all the runtime files into the applications startup folder, what's specified in the Icon on the your desktop or short cut. Moving them there may fix this, we start looking for our runtime where your EXE is located and then in the working Folder, then in the \system32 folder and finally down the PATH statement. We also have hard coded specific location in our load methods. In this case you may have to rename the \windows\crystal folder from the CR 7 install. But I don't recall if this will break the CR 7 app.
    Also if you are moving the version 7 runtime or the other app it may break that application so make note what you did so you can restore it. Also highly suggested to back up everything and test this on a test machine before applying to the production PC's.
    You can use tools like Filemon and modules from our site. You can get filemon from www.sysinternals.com.
    Other than that it will not likely work due to 7 not supporting side-by-side and will load anything it finds. And of course, Don't support or install both versions of software on the same PC.

  • Working with polygon shapes and defining active/non-active mouseover areas (imported shapes)?

    Hey guys!
    Really struggling with this one. Since Edge only has rectangles and ellipses built in as available shapes, how to I/we work with polygon shapes and active mouseover areas INSIDE of these shapes and non-active mouseover areas OUTSIDE of the shapes?
    Problem/symptom: when I import a polygon, be it any file format from from Photoshop or SVG from Illustrator, a rectangular border/background (transparent) gets applied, leading to this rectangle defining the mouseover area of the shape - and not the shape itself (be it a star or whatever).
    WHAT I WANT: the very shape defines the mouseover area. How do I achieve this?? See examle below:
    WHAT I DON'T WANT: how is is now:

    Thanks for your answer, resdesign.
    I've had a look at the edge commons library, and it seems like it opens up a lot of possibilities. However, I cannot figure out how to access/target individual shapes and layers for applying effects like you would with symbols (rotation, colorchange and so on).
    WOULD BE GREAT TO HAVE THE SHAPES INSERTED ON SEPERATE TIMELINES for further work and effects manipulation - is this somehow possible? So that one could reach the shapes from the stage with something like:
    sym.getShape("shapename");play("show");

  • Working with images as data

    Hi,
    How do I work with image data in HTML DB? I'd like to define a column of type ordimage (or if not that then BLOB)load images in the column, query images based on other related data in the row and display the images with related data. Thx. Bill

    hi bill--
    i'm pretty sure you'll find the answers you need in an ealier thread from this discussion forum...
    BLOB (images) support in MarvelForms
    could you take a look at it and let us know if you'd like further assistance, please?
    thanks,
    raj

  • HP Photosmart C2780 All-in-one won't work with Image Capture

    I want to use Image Capture as the scanning software but it won't connect to my scanner (HP Photosmart C2780 All-in-one). When I go to browse devices it shows the scanner but when i click on "Use Twain UI", nothing happens, and it is supposed to ask me if I want to connect. I believe that I have followed all of the instructions correctly but nothing is happening. Does the HP Photosmart C2780 even work with Image Capture? and if it does what am I doing wrong?

    Install the HP Drivers from HP.
    I installed V9.7.1 from the HP website:
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=mp-55650-2 &lc=en&cc=us&lang=en&os=219&product=3204785&dlc=en
    This provides 'Hp Device Manager' which will scan images or do OCR on text pages....

  • Does the 932C HP printer with 2 sided printing accessory work with window 7 and office word 2010?

    (model#C6463A-double side, printing accessory), for the HP 923C printer?  Is it real slow printing?  Does it flip by itself or do I have to flip it? Also will the printer with the accessory work with windows 7 and office word 2010 to type 4 pages per sheet, like a book? Thanks and please help me!

    Hi @Happyforhelp 
    I suspect your question would be better answered in the HP Enterprise Business Community, as your HP Printer is a commercial model.
    My technical expertise is with consumer products and software, I am sure the commercial folks would be happy to help if you re-post your question for them to answer. The HP Enterprise Business Community is an HP Forum designed for the Commercial and Enterprise customers to help one another. I am sure you will find some HP folks there to help too.
    Click here to view the Printing and Digital Imaging. When the page opens you will see the option to 'Log in' or 'Register Now' on the right. The commercial forums are separate from the consumer boards, thus you will need to register if you don't already have a commercial account.
    You may find the HP Deskjet 930/932c Printer series page helpful while you wait for somebody in the commercial Forum to respond to your inquiry.
    Best of luck.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Is there a way to download Firefox 4 without going on a 3rd party site? Many of my addons do not work with Firefox 5 and 6.

    Quite a few of my addons don't work with firefox 6, and I would prefer to keep them, but my pc crashed and I had to reformat. I don't want to have to go on a 3rd party site, since they could easily put a virus on my pc. I couldn't find anywhere to download it on the site.
    Thanks

    ftp://ftp.mozilla.org/pub/firefox/releases/4.0.1/
    Just keep in mind that Firefox 5.0 was a security release for 4.0.1.

Maybe you are looking for

  • Impact of invoice reversal to accounting

    good day experts!! what impact does invoice cancellation/correction have on accounting department wen they hav already cleared the invoice? can the invoice repeatedly be paid to contractors becauase of invoice reversal? these is in terms wen trying t

  • 3d parsing error

    When  we try to open our solid models converted to pdf we are getting this error "A 3d parsing error has occured". Thes files all worked before and now everyone is having problems. Loaded version 9.5.5. and 11.

  • Material does not exist in warehouse LN2

    the system gave me the above mentioned error and advise with:If you want to use the material within your warehouse number, you must create the material in the material segment for that warehouse number. what is the transaction to used

  • Choose Preserve Image Dimensions When Relinking

    Is there a way to change the preference "Choose Preserve Image Dimensions When Relinking" from scripting? This setting is accessible in the user interface ( in the Edit menu / Preferences / File Handling tab ). Andreas

  • Integration model

    Hi all I want to work in ECC only with process orders, so I have created and activated the order model. The problem is that, I can't transfer the order from APO to ECC because of the system message: there is no planned order model.........if I active