Is there an API for resizing the image "smoothly"?

To get thumbnails of images, I use EncodedImage.scaleImage32 (). It works Ok, but when I open the native image (from the camera app) Viewer I see the difference in quality - thumbnails Viewer native look nice (smooth, anti-aliasing), while mine are a little ugly. It seems that native Viewer resizes images using a filter (bicubic or sth like this). How can I do the same? Is there some API for resizing 'smooth '?

In 5.0, but it does not work with images.

Nothing native pre - 5.0, you must implement your own.

Tags: BlackBerry Developers

Similar Questions

  • Need an easy way to resize the image for the web program

    I used to use Picture manager to easily resize a large picture (1-2 MB) to use on the web (50-100 KB) program. Now upgraded to Windows 8 (Why oh why, it is so user unfriendly) and photo gallery only resizes the images to about 500 KB. How can I easily resize images effectively.

    I used to use Picture manager to easily resize a large picture (1-2 MB) to use on the web (50-100 KB) program. Now upgraded to Windows 8 (Why oh why, it is so user unfriendly) and photo gallery only resizes the images to about 500 KB. How can I easily resize images effectively.

    ======================================
    Perhaps the resizer freeware at the following image
    be worth a try.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Prish Image Resizer
    http://www.photo-freeware.NET/Prish-image-resizer.php
    (Operating system: Windows XP / Vista / 7 / 8)
    (the name of the 32-bit file is: 32bit_PrishResizer_2519.msi)
    (for 64 - bit file name is: 64bit_PrishResizer_2519.msi)

    (Note... the download links for 32-bit and 64-bit are reversed)

  • Resize the image sources - change the size of the images database

    Hi all

    I have a trivial problem, but I can't deal with it. I have a project with compositions called slides. Each slide have JPG image as layer and this image is assigned 100% to 106% Resize effect (two keyframes). The images have their own folder. I need to replace all the images but the problem is that the new images have different sizes, for the most part, they are bigger than originals. When I right-click the imported images directly on I don't see any options to change their size (single space reserved or solid). When I double click them to open it in a new tab I don't see no resizing tool and layer menu is grayed out for the most part.

    So far, I found that I have three possibilities:

    1. resize as a layer in the composition of each slider. Unfortuately I don't see any way to change the database size, so resize here means add another keyframe or change existing. If I change the first keyframe on the layer in the composition of the slide then I have to proportionally resize the last of them. There are about 20 slides this process would be quite painful

    2. resize the images before importing - with PSP, GIMP or same IrfanView. It would be a much better solution than before however, this means a blind resizing - without no preview as the composition. Whenever I want to change the size a bit, I have to import image again. Painful.

    3 convert the images to the compositions,

    Convert each JPG file in composition, put this composition as the layer to each composition drag next to layer JPG, transformation of copy of layer of JPG to the composition of the image layer and delete the JPG layer. Long process but the effect is exaclty as I want and the project is fairly durable for any other modification of the image. However, in larger projects where there are many effects assigned to layers, it would be very painful.

    So is there an easy way to change the sizes of the imported images database? I can't believe that in such a huge program like After Effects, there is no way for such a simple task. I believe firmly im just something missing.

    You can resize your layers in Ae with scale parameter. (transform-> scale). If there is no animation, you need not place a keyframe. for example, you can resize your layer to 46% and decide to evolve for a while, so the first keyframe will be 46%, and the last keyframe is 83%.

    Yes, I know that if you have layer with no keyframes for the scale property then scaling ways to change the size of its base. However, in my example, I have two frames - 100% and 106%. If I import large image so I have to resize. If im on the first keyframe, and then it wil change its size to 100% for example, 56%. But the last keyframe is not changed - its still 106%. So that means animation past from 56% to 106% - image develops much more quickly than in an original animation.

    But now I found that I can select all the points of the keyframe by clicking on the entire property scale and resize proportionally when I resize the image, all the points of the keyframe. It's the simplest and most effective solution for me!

    Thanks for the help!

  • Get the old value of font size of the text after resizing the image.

    Hi all

    I write the script to get the size of the font of the text layer. I'm old font size after resizing the image.

    Here are the steps:

    -I write the function to get the property of the selected text layer...

    getInfoOfText = function (textLayer)

    {

    ........;

    var textItem = textLayer.textItem;

    fontSize var = textItem.size;

    .........;

    }

    -After image resize 50%. I am executing this function.

    But I get always the old value of font size.

    Let's say that the size of the font of the text = 36 px.

    Now I apply Image resize 50%. Thus, the size of the font of the text becomes 18 px.

    Now, if I run the 'getInfoOfText' function, I get always 36 px.

    I can't understand the behavior. Am I missing something here? Is it possible to get the correct font size value?

    Please note that I use the CS6 version.

    Waiting for your help guys.

    Thank you

    It seems that there is a BUG in CS6 and CC with transformed text, here is a function of http://www.ps-bridge-scripts.talktalk.net/

    function getFontSize(){
    if(app.version.match(/^\d+/) < 13) return activeDocument.activeLayer.textItem.size;
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    var desc = executeActionGet(ref).getObjectValue(stringIDToTypeID('textKey'));
    var textSize =  desc.getList(stringIDToTypeID('textStyleRange')).getObjectValue(0).getObjectValue(stringIDToTypeID('textStyle')).getDouble (stringIDToTypeID('size'));
    if (desc.hasKey(stringIDToTypeID('transform'))) {
                var mFactor = desc.getObjectValue(stringIDToTypeID('transform')).getUnitDoubleValue (stringIDToTypeID('yy') );
        textSize = (textSize* mFactor).toFixed(2).toString().replace(/0+$/g,'').replace(/\.$/,'');
        }
    return textSize;
    };
    
  • The Batch command to resize the image on the canvas is centered.

    Hi all

    I'm not quite the Fireworks guru so patient with me. I use Fireworks for many batch image optimization of the things I do for our company Web site. I use simple batch commands to run on a directory of files. Export of batches, batch resize etc.

    I need to do something more sophisticated with the batch command and Im not quite sure how to do it, ot if there is an existing jsf file or extension I can grab for it (in batch).

    I have a bunch of images that vary slightly in width and height. I need to resize a specific background and Center it on the canvas. Thus, for example, when I run the batch, he creates a transparent canvas or white which is 400px x 400px and then takes the image and centers it in the Web. Basically, resize the image to fit in the center of the canvas. Any help or links would be appreciated. I tried recordign action to do so in the history panel, but I could never work.

    I'm starting to feel like I'm talking me LO

    I made a second order

    400 x 400 canvas

    any size of object

    Select it

    clear history

    In the Align Panel, select "Position (that will be more dark grey) then Align Center horizontal and vertical (top row center icons).

    the command

    Recap:

    Add images in batches

    Add scale

    Scale size 260 width height white

    Orders add both (change the canvas and align)

    process of

  • resize the image in the Image element

    Hello

    I have an element of the Image corresponding to a blob column in my data base. I store image files there, then I retrieve and display images in this point of the Image. the question is how can I resize the Image with respect to the dimensions of the part of the Image? Here is an example [http://img25.imageshack.us/i/photoadx.jpg/]. This image is larger that it is displayed, so I need to see the entire image in this point of the Image.
    How can I resize it?

    Thank you!

    There is a Style property "calibration" for the image, set this "Adjust".

  • How to resize the image

    Hi all

    IAM getting the image to the server I need to resize the images, iam specifying an area it should resize and display with out streatch the image; as in a browser if I reduce the size of the browser, then the size of the image decreases as the correspondent. What should I do for this in the mobile? for this whole method in blackbery?

    Thanks in advance.

    Hi all

    I solved the problem.

  • Cannot resize the image pasted on layer Photoshop CC 2015

    I just upgraded to CC 2015 and reloading of the older versions of almost all the programs.  In Photoshop CS6 I could stick an image on a layer and then take one of the corners to resize it.  There is nothing to grab to resize the image in 2015 CC.  Nothing!  How am I suppose to resize the image and play with it, unless I can grab the corners and shrink and enlarge?  Help!

    Edit > Transform > scale.

    Hold down the SHIFT key to keep the proportion

  • Is there a way to reflect the image taken by the spot Healing Brush tool?

    Hello

    Is there a way to reflect the image taken by the spot Healing Brush tool? For example, I learn to restore an old photo of a face. One nostril is damaged, so I want to use the other to replace, but the image of the nostril by the spot Healing Brush tool is back forward.

    Thank you

    Sally

    Hi Sally,

    It is the wrong tool to use, but rather to use the clone stamp. Open the control panel in the Windows menu and you will see many options. One is to reverse the cloned area. Like this. Put the clone on its own layer like that allows you to better position and apply a layer mask to cover whatever it is unwittingly cloned. Cloning should be done with a soft brush at around 50% opacity just to enhance the effect. When you have finished giving the layer clone a soft Gaussian blur as this smooth out the look. Then flatten to restore

    It may be useful

    Terri

  • Is there an API to get the session timeout value

    Hello

    Is there an API to get the value of timeout between vcenter server and vsphere web customer?   I enclose the screenshot that displays this value in the VShpere Web client version 5.1.

    Thank you

    Can you post this question in the forum Web Service SDK? vSphere SDK for management

    There will be more competent people.

  • Photoshop CC: Have a template that I transferred the image to.  The image is too small.  How to resize the image in the template?  Or I have to go to the file original image and resize here over and over again until I have found the right person?

    I have a model I am able to plug different images at different times.  The problem is when I plug an image in this template, I think that the image is either too big or too small.  Is it possible to connect the image in the template and resize the image (and not the template itself) OR I have to go into the file with the original image and resize them it there and then try to plug it into the model to see if it fits - and if it does not fit, return to the original with the image file and resize it again and see if this fits - and so on and so on...?  "" I tried the "image size" option, but it's all or nothing - especially miss!

    Thank you!

    First, make sure that the original image is larger that you need. It is easier to delete pixels that so add nonexistent pixels.

    Place the image in the template.

    In the menu filters, choose Convert to smart object. (Make sure that the image layer is selected before doing this step)

    Now reduce the size of the image of what you need (ctrl-t or cmd - t) when satisfied click return/enter.

    Because the image layer is a smart object, you can replace the inner image in another image and the scale will remain the same. You will find the option to replace the image in the layers > smart menu object.

    If you need assistance more let us know.

  • Resize the image in the UI

    I was under the impression, this setting image.size = [X, Y] dimensionnera the image to size XY. But it turns out that it is cropped so that X / Y dimension. Why is this happening? Any way to resize the image and not crops?

    Thank you.

    There is a method described in the pdf of Peter Kahrel (scriptui-2 - 2.pdf), in paragraph image resizing.

    I hope this works also in the CP AE.

    Xavier.

  • Add icon for 'paste the image to the Clipboard as stamp tool' in the toolbar.

    I had to configure Acrobat 9 all over again after getting a new computer and I swear to you that I remember having a quick access on the toolbar icon for "paste the image to the Clipboard as stamp tool.

    Now I have to go to the dropdown for the tool to access when buffer before having its own icon in the toolbar.

    How to get set up on my old computer?

    Thanks for the help.

    I found the answer.

    RT-click on the comments (I rt-click on the stamp tool) toolbar

    Select Show all the annotation tools.

    There you go, now just to rt - click again in this area and remove the additional tools that came by deselecting them.

    Now you will see him stick the image to the Clipboard as a tool as a quick tool.

  • Resize the Image with the wheel causing exception 1502

    Description:

    I load an image inside a container of border and when I Zoom out, scroll bars disappear as expected. Now, when I resize the image to exceed the limits of the boarder container I get exception below. In my view, the exception is thrown when the scroll bars are reactivated but I could be wrong. Someone has seen this before

    Exception:

    Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
    at spark.components.supportClasses::ScrollBarBase/get viewport()
    at spark.components::VScrollBar/updateMaximumAndPageSize()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\VScrollBar.as:123]
    at spark.components::VScrollBar/http://www.adobe.com/2006/flex/mx/internal::viewportResizeHandler()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\VScrollBar.as:390]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:12266]
    at mx.core::UIComponent/dispatchResizeEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9641]
    at mx.core::UIComponent/setActualSize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9172]
    at spark.components::Group/setActualSize()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\Group.as:891]
    at mx.core::LayoutElementUIComponentUtils$/setLayoutBoundsSize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\LayoutElementUIComponentUtils.as:497]
    at mx.core::UIComponent/setLayoutBoundsSize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:13069]
    at spark.components.supportClasses::ScrollerLayout/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\supportClasses\ScrollerLayout.as:546]
    at spark.components.supportClasses::GroupBase/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\supportClasses\GroupBase.as:1224]
    at spark.components::Group/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\Group.as:899]
    at spark.skins::SparkSkin/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\skins\SparkSkin.as:191]
    at mx.core::UIComponent/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8531]
    at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:663]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    
    

    MXML code:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                      xmlns:s="library://ns.adobe.com/flex/spark" 
                      xmlns:mx="library://ns.adobe.com/flex/mx"
                      xmlns:ns1="com.adobe.wheelerstreet.fig.panzoom.*"
                      pageTitle="FileNet Flex Viewer"
                      minWidth="955" 
                      minHeight="600" 
                      creationComplete="init()">
         <fx:Style>
              @namespace s "library://ns.adobe.com/flex/spark";
              @namespace mx "library://ns.adobe.com/flex/mx";
              /*
              s|Application {
              backgroundGradientColors: #000000, #222222;
              }          
              */
              s|Button#zoomInButton {          
                   skinClass: ClassReference("skins.ZoomIn");
              }
              
              s|Button#zoomOutButton {          
                   skinClass: ClassReference("skins.ZoomOut");
              }
              
              s|Button#fitToWindowButton {          
                   skinClass: ClassReference("skins.FitToWindow");
              }
              
              s|Button#fitToWidthButton {          
                   skinClass: ClassReference("skins.FitToWidth");
              }
              
              s|Button#fitToHeightButton {          
                   skinClass: ClassReference("skins.FitToHeight");
              }
              
              s|Button#rotateRightButton {          
                   skinClass: ClassReference("skins.RotateRight");
              }
              
              s|Button#rotateLeftButton {          
                   skinClass: ClassReference("skins.RotateLeft");
              }
              
              s|ToggleButton#rubberBandZoomButton {          
                   skinClass: ClassReference("skins.RubberBand");
              }
              
              
              
         </fx:Style>
         
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here 
              <s:Rotate id="rotator" angleFrom="{angle-90}" angleTo="{angle}" target="{img}"/>
              -->
              <s:Resize id="resize" target="{img}"/>
              <s:Rotate id="rotate" target="{img}"/>
              <!--<s:Resize id="contract" target="{img}"/> -->
         </fx:Declarations>
         
         
         <fx:Script>
              <![CDATA[
                   
                   import flash.net.navigateToURL;
                   
                   import mx.controls.Alert;
                   
                   [Bindable]
                   private var _imageURL:String = "images/earth-map_small.jpg";
                   
                   [Bindable]
                   public var angle:Number = 0;
                        
                   [Bindable]
                   private var borderHeight:Number;
                   
                   [Bindable]
                   private var borderWidth:Number;
                   
                   private var effectDuration:Number = 250;
                   private var defaultRotation:Number = 90;
                   
                   private var profits:Array;
                   private var dragStart:Point;
                   private var dragEnd:Point;
                   private var zoomingEnabled:Boolean;
                   
                   public var originalHeight:Number;
                   public var originalWidth:Number;
                   
                   public function init():void{
                        originalHeight = img.height;
                        originalWidth = img.width;
                        borderHeight = borderContainer.height - 5;
                        borderWidth = borderContainer.width - 5;
                   }
                   
                   
                   public function fitToWindow():void{
                        resize.end();
                        resize.duration = effectDuration;
                        
                        if(img.rotation == defaultRotation || img.rotation == -defaultRotation){     
                             resize.heightTo = borderWidth;
                             resize.widthTo = borderHeight;
                        }
                        else{
                             resize.heightTo = borderHeight;
                             resize.widthTo = borderWidth;
                        }
                        
                        resize.play();
                   }
                   
                   public function fitToWidth():void{
                        resize.end();
                        resize.duration = effectDuration;
                        
                        if(img.rotation == defaultRotation || img.rotation == -defaultRotation){
                             resize.heightTo = borderWidth;
                        }
                        else{
                             resize.widthTo = borderWidth;
                        }
                        
                        resize.play();
                   }
                   
                   public function fitToHeight():void{
                        resize.end();
                        resize.duration = effectDuration;
                        
                        if(img.rotation == defaultRotation || img.rotation == -defaultRotation){
                             resize.widthTo = borderHeight;
                        }
                        else{
                             resize.heightTo = borderHeight;
                        }
                        
                        resize.play();
                   }
                   
                   public function zoomIn():void{
                        resize.end();
                        resize.duration = effectDuration;
                        resize.heightTo = img.height*2;
                        resize.widthTo = img.width*2;
                        resize.play();
                        
                   }
                   
                   public function zoomOut():void{
                        resize.end();
                        resize.duration = effectDuration;
                        resize.heightTo = img.height/2;
                        resize.widthTo = img.width/2;
                        resize.play();
                   }
                   
                   public function rotateRight():void{
                        rotate.end();
                        rotate.duration = effectDuration-200;
                        rotate.angleFrom = angle;
                        rotate.angleTo = (angle += defaultRotation);
                        rotate.play();
                   }
                   
                   public function rotateLeft():void{                    
                        rotate.end();
                        rotate.duration = effectDuration-200;
                        rotate.angleFrom = angle;
                        rotate.angleTo = (angle -= defaultRotation);
                        rotate.play();
                   }
                   
    
                   private function initRectangle(e:MouseEvent):void{
                        
                   }
                   
                   private function showShowRectangle(e:MouseEvent):void{
    
                   }
                   
                   private function clearRectangle(e:MouseEvent):void{
    
                   }
                   
                   
              ]]>
         </fx:Script>
         
         <s:Panel
              id="mainPanel"
              left="5" 
              right="5" 
              top="5" 
              bottom="5" 
              title="FileNet Flex Viewer" 
              fontWeight="bold">
              
              
              <mx:ApplicationControlBar dock="true" top="0" left="0" right="0">
                   <s:Button 
                        id="zoomInButton"
                        toolTip="Zoom In"
                        click="{zoomIn();}"
                        />
                   <s:Button 
                        id="zoomOutButton"
                        toolTip="Zoom Out"
                        click="{zoomOut();}"
                        />
                   <s:Button 
                        id="fitToWindowButton"
                        toolTip="Fit To Window"
                        click="{fitToWindow();}"
                        />
                   <s:Button 
                        id="fitToWidthButton"
                        toolTip="Fit To Width"
                        click="{fitToWidth();}"
                        />
                   <s:Button 
                        id="fitToHeightButton"
                        toolTip="Fit To Height"
                        click="{fitToHeight();}"
                        />
                   <s:Button 
                        id="rotateRightButton"
                        toolTip="Rotate Right"
                        click="{rotateRight();}"
                        />
                   <s:Button 
                        id="rotateLeftButton"
                        toolTip="Rotate Left"
                        click="{rotateLeft();}"
                        />
                   <!--<s:ToggleButton 
                        id="rubberBandZoomButton"
                        toolTip="Rubber Band Zoom"
                        click="{}"
                        />
                   -->
              </mx:ApplicationControlBar>
              
              <s:BorderContainer 
                   id="borderContainer"
                   right="5" 
                   left="5" 
                   top="40" 
                   bottom="5">
                   
                   <s:Scroller
                        width="100%"
                        height="100%">
                        <s:Group>
                             <mx:Image 
                                  id="img"
                                  maintainAspectRatio="false"
                                  maintainProjectionCenter="true"
                                  source="@Embed('images/earth-map_small.jpg')"
                                  verticalCenter="0"
                                  horizontalCenter="0" 
                                  horizontalAlign="center" 
                                  verticalAlign="middle"/>
                        </s:Group>
                   </s:Scroller>
              </s:BorderContainer>
         </s:Panel>
         
    </s:Application>
    
     
    

    I think that this smaller version shows the consisently (attached JPG) question:

    http://ns.Adobe.com/MXML/2009.
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" >
       
       
            public function fitToWindow (): void {}
    IMG. Height = borderContainer.height;
    IMG. Width = borderContainer.width;
    }
    ]]>
       

       
       
           
       

       
       
           
               
                   
    horizontalCenter = red '0' = '0' / >
               

           

       

       

    Looks like the interaction of Red/horizontalCenter with the add/remove scroll bars causes a loop.  Can you please fill a bug report and post the link here?  (Or let me know if you prefer that I have put it).

    The workarounds are:

    1. in the fitToWindow() method to subtract enough pixels to consider both sides of the border, for example:

    public function fitToWindow (): void {}
    IMG. Height = borderContainer.height - 2;
    IMG. Width = borderContainer.width - 2;
    }

    2. always keep the scroll bars displayed, for example:

    3. instead of use BorderContainer use SkinnableContainer/group and draw the border outside the container, for example:


           
               
                   
               

           

      
           
               
                   
                       
    horizontalCenter = red '0' = '0' / >
                   

               

           

       

    Let me know if these solutions of workaround for the case also reduces work for your application.

  • (1) is there a function for all the object of the same size?

    (1) is there a function for all the object of the same size?

    Sorry, I thought you wanted to align the objects.

    We do not have the function to make items of the same size. You must change one by one. To change the .lks file may be more effective.

Maybe you are looking for