How to expand an Image without making new image

Well, I got a VolatileImage(or it can be normal image), I wanna cut a portion of it, then attach something new to the portion, how do I do so?
See the following:
Image:
111111
222222
222222
I want to cut the "2s" part, so I get
222222
222222
Then attach "3s" to the bottom:
222222
222222
333333
The way I can think of is: make a new VolatileImage with the right size (portion size+ new attachment size), cut the portion from the old image, paste the cut into the new image at the right position, then render the new attachments into the new image, but this way requires a lot of memory copying, is there a directly way just chop off unwanted stuff and put in new stuff?
Thanks in advance.

What kind of application are you trying to do this for? If you're scrolling a map, a better way to do it is to split your original (big) map image file into small square tiles and just draw the one that are on the screen at a given time. This way, instead of copying a large image whenever you scroll, you just change some x and y variables and draw the images at a new offset.

Similar Messages

  • How do I share files without making a new copy of them.

    I have my music library on an external hard drive, connected to my AE base station.
    I have instructed iTunes (on my laptop) that its music library is on that external drive.
    Now my teen has a laptop and I wish to setup iTunes on that laptop with the teen's own library, consisting of the age appropriate content from that networked hard drive.
    Yet, when I tell the "Teen" iTunes to "add" an album to their Library, it wants to make a completely seperate copy of the music files instead of just adding a pointer to it.
    How can I get the "Teen" iTunes to simply serve from the existing files (as my laptop does) and not have to create brand new, duplicate music files to play from?
    BTW - Simply turning on "Sharing" from my music library turns out to be a bad option as all the song and podcast titles show up even if the parental content controls keep the teen from playing those tracks.

    iTunes preferences > advanced, uncheck copy files.....

  • Expand page width without creating new section- please help!

    When I expand the width of my page, iWeb creates a new section instead of expanding my content. Does anyone know how to fix this?? Thank you!

    Here is a visual refferance. The first tab of the inspector is the "page inspector" then click Layout then adjust page width to fit your needs

  • How to expand background image or a div to fit browser

    Hi All,
    Can anyone advise on how I can expand my background image (or currently an image in a div) to fit the browser.
    Current page is  www.curtissigns.com
    I have been trawling through the forum but could do with being pointed at some sample code.
    Any advice would be helpful..bearing in mind that I am no expert and have lots to learn LOL
    Stuart

    You have some serious issues with your code.
    40 errors and 5 warnings.
    You'd be best off if you clean those up using the validator here: http://validator.w3.org/
    As for the 100% background image, there are several ways to do that, all with varying support in older browsers. The easiest way (with least old browser support) would be to use the background-size:cover css attribute. Here's an explanation of how to use it: http://www.w3schools.com/cssref/css3_pr_background-size.asp
    If you are worried about older browsers, you'd need to use a javascript, depending on your coding skill, this page gives you everything you need http://louisremi.github.com/jquery.backgroundSize.js/demo/

  • How do I remove a password from my macbook pro?  I have accidentally allowed my user/password to automatically come up when going into a site and want to set so I do it manually.  How do i remove it without making any changes to the user name and password

    I have accidently checked a box to show a password and username when opening a site.  How do I remove these so I can do it manually without having to change either?

    Delete it using the Safari menu > Preferences > Passwords

  • How to move iPhoto Library without making copy

    I just updated to the new 10.10.3 and the new iPhoto came along with it.  When I try to open my iPhoto library it won't let me and gives me an error message.  This link show me how to handle it https://support.apple.com/en-us/HT204484.
    Here is the problem I'm running into.  My hard drive is 1 TB total, I'm using 800 Gigs of that and of that 800 Gigs 450 gigs is my old iPhoto library.   The solution I'm being given is this: 
    1. Open the Terminal app.
    2. Type the following command and press Return. Substitute the name of your user account for your_username.
    sudo chown -R your_username /Users/your_username/Pictures
    3. When prompted, type your OS X user account password and press Return.
    4. Type the following command and press Return. Substitute the name of your user account for your_username.
    sudo chmod -R 700 /Users/your_username/Pictures
    5. Quit Photos, then hold down the Option key and open Photos.
    6. When Photos asks you to choose a library, try to migrate the library again.
    My iPhoto library is stored on my "Macintosh HD" drive and not under a user.  When I try to move the iPhoto library it says I don't have enough storage space to make a copy of the file, as its 450 gigs and I don't have a free 450 Gigs on my HD.
    Does anyone know how to handle this?

    First: verify that iphoto is the same version or later version on the iMac, compared to the Macbook Pro. It must be the same version or a later version.
    Second: in your Pictures folder on the iMac, rename the existing "iPhoto Library" to something like "iPhoto Library_old", so you have a copy in case something goes wrong.
    Third: copy the iPhoto Library file (it's actually a package file, which is like a folder) from Pictures folder on the Macbook Pro to the Pictures folder on the iMac. You can do this easiest via a USB drive that has enough space to hold this file, moving it from one machine to the other. [You can also do it directly if both machines are on the network.]
    Fourth: start iPhoto on the iMac, it should open the newly copied over iPhoto pictures that are in the iPhoto Library that you just copied to the iMac. If the iMac has a later version of iPhoto, it will indicate that it needs to convert the library to a new format, you should agree to let it proceed with that. If you have many pictures, it might take a while, minutes to even hours.
    Fifth: don't delete the iPhoto Library on the Macbook Pro until you have verified that iPhoto is accessing all the photos and events in the iMac. Make sure the number of photos is correct.

  • I took a video using a tripod and I want to blend the video with a copy of the same video. How do I do that without making the video darker or lighter while keeping the opacity of the main video?

    I dont want to the people in the main video to become transpartent (ghostly) I only want that to happen with the copy that I am overlaping. The copy will not be at the same starting point as the original, it will be slightly ahead. Everything ive tried has left the video lighter or darker then the original and it looks weird, it was used with a tripod so nothing changes in the video except for the posiioning of the people. I want to have like a trailing affect following the people, like you can get with your cursor on some computers its like its lagging behind? Its hard to explain, I hope this made some sense.. any suggestions would be great thanks.

    Since you are disolving two shots together (rather than compositing or keying) it seems like you will always have some slight noticeable opacity as you are effectively bleinding two shots together at 50% opacity each. There is no way to maintian 100% short of keying or compositing. However with the background being the same in both shots the opacity shift should be very minimal.
    Although you might consider trying the built in trailing effect in the filters browser and see how it looks, it might achive the effect you are attempting better than blending the two shots.

  • I have a Macbook 13-inch, Late 2009 I'm running 10.8 Mountain Lion. iWork '09 will not work, how can I fix that without purchasing new programs from the App Store?

    Help! 911! S.O.S.

    Update iWork to Mountain Lion compatible versions.
    Software Update is now operated therough the Mac App Store. I'm guessing that you have a version not purchased through the Mac App Store, but on DVD?
    If so, take a look at this thread. It's important to have the apps in the original folder. More details in the thread.

  • How to have possible entries without making permanent objects

    Hello everyone!
    Can I make a possible entries list just by simple coding and not by having a reference to a table?
    What I mean is that all the possible entries for a box will just be declared inside my program (specifically, report program).
    Example, I have a text box named NAME. The possible entries will just be Ric and Bullet but Ric and Bullet is not in any table but will just be declared in my program.
    Thank you! _

    see the code and if helpful reward points
    tables: tvdir.
    selection-screen skip 2.
      parameter p_tabnm(30) as listbox visible length 30 obligatory.
      selection-screen skip 1.
      selection-screen begin of block s1 with frame title text-001.
    Add values to list box
    at selection-screen output.
      type-pools: vrm.
      data: name  type vrm_id,
            list  type vrm_values,
            value like line of list.
      name = 'P_TABNM'.
      refresh list.
      value-key = 'V_024'.
      value-text = text-002. "'V_024-Purchasing Groups'.
      append value to list.
      value-key = 'V_T024D'.
      value-text = text-003. "'V_T024D-MRP Controllers'.
      append value to list.
      value-key = 'ZT604'.
      value-text = text-004. "'T604-Commodity Codes'.
      append value to list.
      value-key = 'T179'.
      value-text = text-005. "'T179-Product Hierarchies'.
      append value to list.
      value-key = 'TVM1T'.
      value-text = text-006. "'TVM1T-Business Manager'.
      append value to list.
      value-key = 'TVM2T'.
      value-text = text-007. "'TVM2T-Division manager'.
      append value to list.
      value-key = 'TVM3T'.
      value-text = text-008. "'TVM3T-Director'.
      append value to list.
      value-key = 'V_TVV2'.
      value-text = text-009. "'V_TVV2-Customer Group 2'.
      append value to list.
      call function 'VRM_SET_VALUES'
           exporting
                id     = name
                values = list.
    start-of-selection.

  • How do I make an apple I'd without an credit card without making a new one?

    how do I make an apple I'd with out a credit card without making a new one

    I do not know a way and have not seen a method posted.

  • How do I import images from my hard drive without losing resolution? My original files after import are significantly smaller. What should I do?

    How do I import images from my hard drive without losing resolution? My original files after import are significantly smaller. What should I do?

    Hi Keith, and all others chiming in, I do have the correct option checked in advanced settings telling iPhoto to copy the images into the library. What is a refernced library? Perhaps this is where I am getting confused. I exported my entire photo library from an old iMac5 to my external hard drive, from there I attempted to import the entire library to my new iMac. Am I overlooking an obvious and easy way to import from the hard drive to the new iMac--I dragged the entire photo pholder from the hard drive to the open window of iPhoto on the new computer. Now, I only get preview file sizes in iPhoto, unless I have my external drive open. Perhaps I need to import the original images from the hard drive in a different way...?! (This is making me feel pretty stupid.)

  • I have files in my iTunes media folder that somehow are not in my library. How do I get iTunes to scan my media folder and add missing files to my library without making a copy of each file in the same location?

    I have files in my iTunes media folder that somehow are not in my library. How do I get iTunes to scan my media folder and add missing files to my library without making a copy of each file in the same location? If I use add file / folder to library, it scans the folder and then makes a copy of any file that is not in my library in the exact same location; I recal in older versions of iTunes being able to just drag my media folder into my library and it would update missing links.

    Only the songs that are connected to iTunes will be copied when you consolidate to a new folder.
    Splitting the media folder away from the usual location makes it harder to move iTunes in the future.
    Are you go move everything back once you've tidied up or are you going to leave it that way? Either way I'd recommend you create an iTunes folder at the new location, an iTunes Media folder inside that, and consolidate to this new iTunes Media folder. You should also use the option File > LIbrary > Organize Library > Rearrange files in the folder "<Media Folder"> if you have not already done so.
    tt2

  • How can I create a long employment form without making the form widget drag?

    How can I create a long employment form without making the form widget drag?

    Sorry Sachin, I mean that I created a simple form on the page from the widget and started adding fields to it. The more fields I add the slower the delay becomes in creating a new field. Even when I try to select and drag or move an item, there's a huge delay and sometimes the program feezes,  loose what i've done and have ot restart.
    I'm doing an enployment form that has more than 20 fields, at least, and I need to be able to build the fields in separate categories, like Education, Past Employment, etc... quickly without delay issues.
    I can probably send you a snap shot of what I'm talking about if I cna post it or attach it here..?
    ~Andy

  • How to proper resize images and videos at runtime without losing quality?

    Hi guys. I need a bit of help here.
    I've built a flash site in which i want to resize a movie to the stage. I do it by keeping the proportion, thus i only resize the width and then i resize the height acordingly to the new width but keeping the proportion.
    The problem is that my film still looks "pixeled".
    I found a website on which the stage resizes dinamically with the movie and the background images without either of them losing quality. Till now i knew that resizing images or videos in flash at authoring or runtime produces pixeled results.
    This is the website: http://kampanjeweb.apt.no/jotun/romforrom/. Can someone tell me how do they do it without losing quality? just make the browser windowed and resize the margins to see the effect.
    Thanks.

    Hello, Venian.
    About the video, you could try setting the flash.media.Video's smoothing property to TRUE. This should keep a quality, but you can do nothing if the video has a poor quality. You need a great video.
    About the images, you you need to redraw the image each time you resize it. To achieve it, use a combination of Bitmap, BitmapData and Matrix classes. Any doubt, just call again. Here is a simple example:
    var scale:Number = .5;
    var highQualitySourceImage:Bitmap = ...your image...;
    var scaleMatrix:Matrix = new Matrix();
         scaleMatrix.scale(scale, scale);
    var bitmapData:BitmapData = new BitmapData( scale*highQualitySourceImage.width, scale*highQualitySourceImage.height);
         bitmapData.draw(highQualitySourceImage, scaleMatrix);
    var finalBitmap:Bitmap = new Bitmap(bitmapData);
    addChild( finalBitmap );
    Cheers,
    CaioToOn!

  • Ihone 4s lost all contacts. I tried to restore from backup but the error message now says there is not enough room. I have deleted all the apps without making any more room on iphone. Why did contact disappear and how do I get them back?

    ihone 4s lost all contacts. I tried to restore from backup but the error message now says there is not enough room. I have deleted all the apps without making any more room on iphone. Why did contact disappear and how do I get them back?

    In the simplest sense, archiving a file means making a copy that you never change and never discard. You already know how to do that.
    iPhoto has built-in archival features, in the sense that it saves all versions of an image that you've modified. As long as you have adequate backups, you don't necessarily have any reason to archive an iPhoto library. If you want to delete images from the working library but still have access to them in case you change your mind, then you do need to archive those images. I don't have a specific suggestion as to how you should do that. You might post a question in the iPhoto forum.

Maybe you are looking for