Show image quality as like original image after resize in as3.

Hi Guys,
I am working on a Action Script3 project and i am showing images after resizing. I am using Bitmap and BitmapData manipulation for this but not getting image quality as like original image.  Please guide and help me with code that how can i do this.
Thanks & regards
Rangrajan

How are you resizing? Normally, you would draw the original bitmap data into the new bitmap data, using a matrix to resize. To smooth scale, you need to use the smoothing option of the draw method. Here's a little sample that takes a library image and scales it to 500x500, using smoothing:
var orig:BitmapData = new baseMap(); //library image
var res:BitmapData = new BitmapData(500,500);
var m:Matrix = new Matrix();
m.scale(res.width / orig.width, res.height / orig.height);
res.draw(orig, m, null, null, null, true);
var c:Bitmap = new Bitmap(res);
addChild(c);
toggle the true to false in the draw, to see the difference...

Similar Messages

  • How can I change the image quality of a background image on a master slide?

    I can change the image quality from low to high for other images in my Captivate project, but the background image I'm using on my master slide looks pixellated. I would like to change this image to high-quality but I don't see the option in my properties panel on my master slide.
    Thanks for any help!

    You cannot import AI images directly. However, when I use Illustrator drawings, I'll import them as smart object in Photoshop and then you can import the PS-layer.
    The quality you set in Captivate is not for individual images, but for the slides that are published as bitmap. This means that it doesn't matter if the object is on a master slide or on a regular slide IMO
    Lilybiri

  • Get Image Subset VI ignores original image offset

    Hi,
    I'm have a problem with Get Image Subset VI.
    My program gets original image rectangle from a image and apply a offset for draw in a picture control.
    But the image cannot across a region delimited by another rectangle. So, i use Get Image Subset with a
    image (with offset) and a deilimiter rectangle. 
    I give the same subset of image with and without offset.
    Attachments:
    test3.vi ‏12 KB
    servidor_g.png ‏3 KB

    In my opnion the correct result is the highlighted are in the Original Picture With Offset (See attached image ) and not Image Subset.
    Attachments:
    imagem.GIF ‏20 KB

  • Why do re-named images changed back to original name after external editing

    I batched re-named a number of images, but when i took one of the renamed images into PS by via the Aperture external editor the retouched file reverted to its original name when it came back into Aperture..... Why is this so? eg Original name was "STE_2200" then i added "2009" to all files to make this files new name "STE_22002009" but when it came back from PS via external editor it was "STE_2200" again. Why might this happen?

    The above answer is correct. Renaming in Aperture after import only changes Aperture's VERSION NAME. The FILE NAME on your hard drive remains unchanged. Officially you can rename file names on import or export, but you can also do it when just moving the photos. For instance, from Managed to Referenced or from one managed location to another managed location, etc. I can give more details if anyone likes.

  • Image quality of Lumia 930 dropped after Denim upd...

    Oversharpened images and unnatural colours.
    Please see the attached images for comparison.
    Attachments:
    Cyan.JPG ‏70 KB
    Denim.JPG ‏100 KB

    It's hard to say from your samples at their reduced resolution, the visible differences could just the different light conditions at the time those two pics were taken. Personally, on the evidence presented I prefer the Denim pic.

  • Why is the preview-quality of my fotos different (worse) in the timeline compared to the original image?

    After importing fotos and videos into an new project for a film the quality of the original image in the preview of the timeline is terrible. When double-clicking in the picture however, the quality of the image is fine. This makes it impossible to use any effects (color, saturation, contrast) on the picture - as it doesn`t actually look like that...is there anything I can do?
    I`m attaching a screenshot of the image in timeline and the original.
    Thanks!
    Maike

    Hi A.T.,
    Thanks for the quick reply. Please see my answers below:
    I`m using a 15 " Macbook Pro with Retina and Adobe Elements Version 13.1 - German Version. I do not know, what eLive is - sorry.
    My video card/graphics card is absolutely up to date - the Macbook I`m using is only a year old.
    The original images are .jpeg.
    Dimensions: 4000 x 3000 px.
    To some of the pictures I have applied effects with Snapseed (App) or iPhoto-Editor. But not to all of them - and I do have this washed-out-effect on those as well.
    In Elements Organizer the thumbnails and the pictures are absolutely OK.
    I did try to correct the colours in Premiere Elements Editor with the color correction tools when I first discovered the washed-out-effect - but this is of course totally useless, as actually the original picture is OK - so I got back to the original.
    I did not consciously use any manual presets to match the properties of the source media. Or at least not as far as I remember. I did import the original fotos into the organizer, used the "video story" presets to arrange the pictures and then proceeded to the timeline where I first noticed the strange effect.
    I hope you can tackle the issue better with these questions answered?
    Thanks,
    Maike

  • Does Export Version reduces image quality?

    Hi,
    I got smaller file size when I "export version" at "original size". My master was jpeg of 5.1MB and I exported in jpeg format, I got 3.6MB. If I "export master", I do get 5.1MB. What does Aperture do to the jpeg image that reduces the file size?
    Then I played around with "image quality", which is 10 by default. If I set it to 11, I got a file of 4.1 MB, still smaller than the original 5.1MB. Set it to 12 I got a file of 10.4MB. I am kind of confused. I guess the "image quality" relates to degree of jpeg compression, and a 12 setting means that Aperture compresses the jpeg image at a lower compression ratio than my camera? Does Aperture uncompress jpeg image and re-compress it when "export version"?
    The bottom line is, how do I preserve image quality after adjustments? In other words, I would like to export at the same image quality as my original photo, or as close as possible (I assume Aperture reduces jpeg image quality a bit every time I apply adjustments to the image via export). Thanks much for your time.

    Wanderzhuanyou wrote:
    2) When I make adjustments in Aperture I actually work on the image Aperture produces out of the master file - which should be about 73MB in my computer memory as the size of the image is 2848 x 4272 and Aperture works in 16 bit.
    Internally, Core Image (which Aperture uses) actually works in 32-bit, but your basic idea is right.
    3) When I export, Apertures compresses this 73MB image (assume adjustments don't make much difference to the image size) to a jpeg file.
    First the image will be reduced to the bit depth of your export preset. Image adjustments will make quite a difference to the final file size because areas of high definition detail and a large tonal range will both increase the file size for a given compression setting. So any sharpening, for example, will increase the file size.
    As a test, export an image with no sharpening applied, then add some edge sharpening and export it again. You should see a noticeable difference in file sizes.
    Correct?
    Pretty much.
    Ian

  • Satellite S70-A-11H web camera image quality is not good

    Hi,
    Running windows 8.1 which came with the laptop.
    New out of the box.
    As per title.
    I find the image quality of the camera image to be very grainy, poor color etc.
    When I start the web camera using the search bar on the right, it starts using the Microsoft application, when you scroll down to settings all that is available under settings/options is Photo aspect ratio, Grid lines, Location info.
    I have been in touch with Toshiba Tech support who advised to do a Laptop refresh, which I did.
    This made no difference.
    After which they asked me to find the Toshiba web camera application on the laptop, this should have been in the Program Files folder in the Toshiba folder.
    This application does not exist on my laptop.
    The tech checked the same model laptop that he had available, which I was told when he selected the web camera, it opened using the Toshiba Web camera application, not Microsoft.
    I have looked at other Toshiba laptops with web cameras, and found the image quality to be better. Unable to get to settings as these laptops were on display and in demo mode, hence locked down to some extent.
    I can't believe that a web camera in this day and age for this value of laptop to have such poor image quality. My digital camera from 10year ago has better image quality.
    I have checked through the laptop, and I do not have this application installed.
    I have checked for updated drivers and software for my laptop, and cannot find this application to be applicable for my laptop. Drivers etc appear to be up to date.
    I would like to know, do other users of this S series have any issue of camera image quality.
    When the camera is selected what application is being used, Toshiba or Microsoft.
    Is Toshiba web camera application applicable to Windows 8.1, as I cannot see it listed for 8.1
    Does this sound like a hardware fault or a application/software issue.
    Any direction or help on this matter would be appreciated, as I am getting to the point of returning this laptop for a refund.
    Thanks in advance.
    D.
    Yes, I have tried using the FORCE!

    > The tech checked the same model laptop that he had available, which I was told when he selected the web camera, it opened using the Toshiba Web camera application, not Microsoft.
    The Toshiba webcam application is available for Win 7 system but the Win 8 and Windows 8.1 system use the own Microsoft webcam application.
    > I have looked at other Toshiba laptops with web cameras, and found the image quality to be better.
    Different Toshiba notebooks are equipped with different webcams.
    Satellite S70-A-11H was equipped with a *0.92 mega pixel webcam*
    A Satellite A660 for example was equipped with an _1.3M mega pixel webcam_
    So there is a difference in webcam resolution

  • Photoshop slice tool and Save for Web image quality. Will it affect prints?

    I want to slice a large photo into multiple smaller (4x6) printable photos to arrange in a 12x12 inch scrapbook binder pocket (made of of 4x6 pockets). I need to order separate 4x6s online so tiling in the print options is not what I need.
    The slow way I know to do this involves cropping and saving each section (maybe even recording this action to do batch processing). However, another way is to use the slice tool to quickly divide up the sections then "Save for Web...". I can adjust some parameters, but I'm afraid there are other automatic adjustments that I don't want. For example, all images are converted to 96 dpi instead of the original 300 dpi. The number of pixels remains the same so I don't think there will be problems printing the picture.
    My question is: does the Save for Web function reduce image quality in any way when printing (it is obviously intended to be used to optimize images for websites)? Are there settings in "Save for Web" that would optimize for high quality prints? Is there a better way to tile an image?
    I have not yet compared any prints.
    W7
    CS6

    If you understand that something will do something you do not want like convert to 96 DPI as long as it does not resample you can always convert back to 300 DPI. If you want 6 4x6 to form a 12x12 you must start with an square 1:1 aspect ratio image. That you resample to 12"x 12" at 300 dpi if you want 6 4x6 300 dpi images.
    If the original images vary in size and aspect ratio you need to crop them square or add two borders to make them square.   The rest is easy to do with an action.
    The square crop or border can be automated with a little scripting.  If crop  a center crop would be the route to go. My crafting actions package contains  more the a dozen scripts to be used within action. One is a plug-in script that would make center cropping a snap two steps menu File>Automat>AspectsRatioSelection followed menu Image>Crop.  Add a menu Image>Size set side to 12" and resolution 300 DPI and you have your  starting 12"x12" 300 dpi image.
    Flatten the image make your first 4"x6" selection copy past to add it as a layer. Select the background select the next 4x6 area copy and paste repeat that process till you have added the 6 4"X6" layers. Then delete the background, Select all, target all layers and use layer>Align layers to selection>Top edge then repeat align to left edge. the Image>Trim you have your 6 4x6 in a stack.   You can the use Adobe Photoshop Script Export Layer to file.   All automated in an action however the last step Export layers to files is interactive for its not a plug-in script. So if you batch it you keen to hang around to interact with the last step for each image.
    You could also write you own export script that would not need human intervention to use instead of Adobe interactive script.
    Crafting Actions Package UPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    More then a dozen Scripts for use in actions
    Example
    Download

  • Export panel bridge cs5 - image quality only to 10

    Hi
    Is anyone else having problems with the image quality settings in the image options.  It cannot seem to save the max setting of 12 it only save jpegs at 10.
    Any suggestions,  Thanks Andy

    I had the exact same issue - except mine is limiting it to a maximum of 8
    The workaround I found is to build the export profile exactly as you would like it - and let it pick whatever number it wants (8 or 10) - ignore the words of Low/High/Maximum - those just correlate to the 8 or 10 (or 12)
    12 is the true maximum for the JPG export and once you run it - there is a noticeable file size increase and the images are a higher quality.
    Once you have the profile built, go into the folder "Export Presets"
    Macintosh HD > Users > YourUsername > Library > Application Support > Adobe > Bridge CS5 > Export Presets
    Open up the file that matches the same name as what you created inside bridge
    The file will likely open as an .xml file inside dreamweaver (or another XML editor)
    find the line:
           <imageQuality>8</imageQuality>
    and set what the system set as an 8 (or a 10) to a 12
           <imageQuality>12</imageQuality>
    save the file and run the export again.
    You will have what were 2-4MB JPG files becoming 8-12MB files with a quality of 12/Maximum
    Hope that helps

  • Image Quality In Crystal Reports for Visual Studio 2010

    I am using the new production release of Crystal Reports for Visual Studio 2010 and I am having an issue with image quality when adding an image to a crystal report.
    The image itself is a .TIF file,  and when opened in Windows, the quality of the image, which is mostly text, is very high. The image was created from a electronic PDF form and I intend to use this as a background for the crystal report, over which I will place data fields.
    As soon as the image is added to the report you can see the degradation in quality in the design window and in the preview window within visual studio. The quality remains low when viewing the report in the WPF report viewer and when printing from this control.
    I have ensured the "Retain Original Image Color Depth" option is checked but this has made no difference (the image is black and white anyway).
    The image in the report has been left at its native size, no resizing at all. The image is 355KB in size if that's relevant.
    Is there a reason the image looses quality when added to a report? Is it being compressed? More importantly, is there a way to make the image retain its native quality when adding it to a crystal report?
    Thanks in advance.

    The following image is the image I am trying to display. Although imageshack has converted it to a png, if you right click and save the image you can open it and zoom in with little image degradation.
    http://img132.imageshack.us/i/j301.png
    The following is a screen shot of how the tif file looks in the designer when zooming in:
    http://img138.imageshack.us/i/j30lowquantity.jpg
    The second image has lost its clarity and is unusable when printing.
    I hope this helps.

  • Converting from .xls to .xlsx without losing jpeg image quality

    I am trying to covert .xls to .xlsx. But I have a lot of jpegs in my .xls and I notice the image quality of the original jpegs is severely eroded. How do I preserve that -- click Option, Advanced, Do not Compress? Do I have to do it a file at a time?
    Elwyn

    Hi,
    Unfortunately,this setting applies only to pictures in the current file or the file selected in the list next to Image Size and Quality.Please take a look the article below:
    http://office.microsoft.com/en-001/excel-help/turn-off-picture-compression-HA010355184.aspx
    Wind Zhang
    TechNet Community Support

  • Image Quality Processing Multiple Images

    When I first installed PSE, I could process multiple images and have the new image auto saved
    at the same image quality of the original. Now it changes to a value of
    "3" ...and I can't figure out how to predefine it to a higher quality

    I get in "Full" edit mode, then click File / Process Multple FIles.
    Then I select my source folder and my destination folder ...next I select one or several of the "Quick Fix" options ...usually just Auto Contrast.
    Finally I click "OK"
    The last few times, the new "processed" file is saved at ~400-500 KB ...instead of the original 3-4 MB.
    Any help would be appreciated.

  • Bad image quality when importing from word

    When importing from MS Word 2003 to RH X5.0.2, embedded
    images are converted to jpg whith an obviously quite moderate
    compression qulity. This is particularly evident for screenshots.
    Is there a way to improve the image quality?

    Peter , these images were copied and pasted directly in to
    the Word-document (using the Print Screen button) but I did find
    out something. RoboHelp generates two image files of the types PNG
    and JPG for each Word image (named, e.g., image102.png and
    image103.jpg). Regretably, the lesser quality JPG is always
    referenced in the topics instead of the much better PNG. Sometimes
    the two images greately differ in size (pixel size), but most of
    the time they are about the same size.
    So the task might be to change the references in all topics
    using a script and then manually checking the images for their
    size.
    An observation: Any GIF images in the Word file (i.e., real
    *.gif files that were inserted over the Insert menue) remain GIF
    files after the import, they are not converted and maintain a good
    quality.

  • Image quality in PDF output

    When my iBook is exported to PDF or Print/Save as PDF several images have very degraded image quality. The same image prints well from pages. Any suggestions/ideas?

    The same image printed from Pages looks fine.
    I've inserted PDF, png, jpg (will probably try TIF/GIF next) all display the same degradation.
    When a JPG is inserted as the Chapter intro image in iBooksAuthor it looks fine/much better.

Maybe you are looking for