PictureScrollField + 6.0 = > resizing of images

Hi everyone, it's me again.

I have a compiled application under 5.0 that great workd with touch device like storm (5.0), but which has some leaks when I start under 6.0

I have a pictureScrollField that hold virtually all the screen, less than 5.0, when an image is smaller that the space has allowed the pictureScrollField, then it's a painting just like that, centered on the screen but not resized.

Under device 6.0 or simulation (torch), the bitmap are resized every time.

I checked the PictureScrollField 5.0 documentation which stated that "image not are NOT resized.

Any clue?

I have found no solution so I started to create new Bitmap from the one i dl.

Like this:

Bitmap resizedBitmap = new Bitmap(360,480);
Graphics g = Graphics.create(resizedBitmap);
g.setColor(Color.BLACK);
g.fillRect(0, 0, 360, 480); bitmap.scaleInto(resizedBitmap, Bitmap.FILTER_BILINEAR, Bitmap.SCALE_TO_FIT);

Tags: BlackBerry Developers

Similar Questions

  • Resize the image with HTML5 Canvas - distortion

    Hi all

    I'm working on a Webworks app where I need to resize an image to upload it to a server. I use JQuery Mobile, the application should run on OS6 and upward. The user can use the camera or select a picture, the power off. The corresponding code is the following:

    function handleOpenedFile(fullPath, blobData) {
                    var image = new Image();
                    image.src=fullPath; //path to image
                    image.onload = function () {
                        var resized = resizeMe(image); // send it to canvas
                        //Do stuff with the DataURL returned from resizeMe()
                    };
            }
    
    function resizeMe(img) {
    
                var canvas = document.createElement('canvas');
                var width = Math.round(img.width / 2);
                var height = Math.round(img.height / 2);
                canvas.width = width;
                canvas.height = height;
                var ctx = canvas.getContext("2d");
                ctx.drawImage(img, 0, 0, width, height);
                return canvas.toDataURL("image/jpeg", 0.8);
            }
    

    I then use the Base64 in the DataURL for download on the server. The images are reduced, but they are truncated. Parts of the image are shifted autour and colors come out strange. It is not scaling in itself than the mess to the top of the picture it comes out garbled if you draw on the canvas without any scaling.

    Does anyone have an idea how to solve this problem or have another suggestion to resize an image for download?

    I managed to solve the problem of resizing for anyone who takes place also in this. Replacement of

    return canvas.toDataURL("image/jpeg", 0.8);
    

    with

    return canvas.toDataURL();
    

    solved the problem with the strange visual artifacts. Returns a picture of resized without any strangeness.

  • Resizing an Image of waterfalls

    What is the suggested way to resize an Image of cascades object? I try to display .jpg captured by the camera on the device BB10 Alpha app, but when I try to display them on the screen I get:

    ERR: Image texture size 1836 x 3264 exceeds application GL max 2048

    In C++ code, where I load the image, I have an instance of Image of waterfalls, but I can't seem to find a way to access the pixels themselves, or helper functions to reduce the resolution.

    Any help would be greatly appreciated.

    Have you seen this: http://supportforums.blackberry.com/t5/Native-Development/ImageView-cascades-noob-question/m-p/17048...

  • 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.

  • resizing of images when attaching to e-mail in windows 7

    I have windows 7.  When I click on an image and then click on mail in the bar, a resizing option comes with the ability to attach.  When I click on join, no possibility of e-mail rises.  If I start with the e-mail address and click on attach picture, no possibility of resizing is provided. There is a gap here? Paul Niemeyer.

    Hello Paul Niemeyer,.

    ·         You have the mail client installed on your computer?

    ·         How are you trying to attach the photos?

    This is how it works, when you click on an image and then click on join, there is an option with the photo gallery of window to resize the image, and then looks for the default mail Client. It's Outlook or Windows Live Mail.

    If it is not installed and configured on your computer, it would not give you the opportunity to send the e-mail.

    However, the e-mail program does not support the option of resizing the image. So, when you attach it with the E-mail program you will not get an option to resize the image.

    Thank you
    Irfan H, Engineer Support Microsoft Answers. Visit our Microsoft answers feedback Forum and let us know what you think.

  • How one is resized an 'image' with the cutting tool?

    I would like to resize an 'image' of a part of one of my accounts on the Internet I did using the cutting tool.  I was able to do this with Windows 7 and have been unable to find a way to do it or to find a solution through research on the Internet.  Maybe the problem is the program that opens the image in full screen only.  Needless to say that Windows 8 is all new to me - a few weeks of usage and I know I have a LOT to learn!  And... I hope I picked the right area for this help!  Your help is greatly appreciated.  Thank you!

    Hello

    I'm not clear - you try to do this in Windows 7 or Windows 8?

    Whatever it is, the basic procedure is:

    1. open the cutting tool.

    2. create the new chiseled image.

    3. Select Save as.

    4. give it a name and select the image type from the menu drop down.

    (PNG is generally preferable for screenshots)

    5. save it to the desired location on your hard drive.

    6. open in an app - integrated image editing paint will do.

    7. open the image that you saved earlier.

    8. click on resize (in painting its on the home tab, in the upper part).

    9 select whether you want to resize a percentage or a non-specific pixels & enter the settings.

    10. Select maintain proportions if you want to keep the ratio width even height.

    11. click on OK.

    If you use Windows 8 and when you double click on an image it goes to an application full screen then it looks like this file type can be associated with the application of the user interface modern Photos. Please see:

    http://Windows.Microsoft.com/en-GB/Windows-8/choose-Programs-Windows-uses-default

    For more information about how to change default programs in Windows 8.

  • 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!

  • Resizing of Image CS6 problems

    I tried to resize these images, I bought on shutterstock for a book cover, and every time that I go to image > image size and put in smaller dimensions, it is resized my canvas together and not only the image! Can someone help me? This seems like an easy solution, but for some reason that I can't understand why it is not just resize my image. I tried Ctrl T and then enter the corner while the change of outfit and that will work, but my problem is when I export as .psd file and then place it in an Indesign file, the photos are all pixelated and blurry.

    You get a better understanding of basic Digital Image Processing and how Photoshop works.  Photoshop is quite complex and all operations are not intuitive.  Photoshop has to be learned and a huge learning curve, you need to understand the basics. Power of Photoshop is in layers and there are several types.  Tool generally work on a single layer, but the size of the Image is an exception, it works on all layers in a document.

    Image resizing is done in two ways, and is controlled by the resample checkbox.  When the checkbox is unchecked is not that a single Pixel will be changed . The picture is adjusted simply by changing the value of resolution of images.  The size of the image is change by changing the pixel size images will be printed. More you pixels the image will print the image will become soft, but if you use 1 foot x 1 foot pixels, you may be able to see the image 100 yards away on a billboard.  When the same image printed with "1/300 of 1/300" 90 000 pixels per square inch would be a simple point seen 100 yards away.   Scalability and the image by changing the Image resolution doe not change the proportions of images or effect the image quality.

    The other dimensions of the part resizes using resampling (interpolation).   When interpolate you an image you always lose image quality.   Not a single pixel you have for your image will be exist at the end of the process of interpolation.  You will have a whole new image. Celles‑CI are calculated by interpolation of pixels you currently for you image.  You will have more pixels or fewer pixels you had before the process of interpolation.  If you have less interpolation process by here a few details that you had prior to interpolation.  If you have more pixels the details of the created process interpolation for your image you do not capture the details, maybe. You can also change the proportions of the Image in the process will distort the image well.

    There are times to interpolate.  Images large high-resolution camera has reduced in the count of pixels to fit in the Web Pages for screens are not able to change the size in pixels. They display the image to their fixed resolution, they cannot display an image in the images resolution setting.

    If you want to view print clogs and personal to see the details of the image, you need to print at a high resolution and the need for the number of pixels to print the image to the size you want.  If the count of pixels you in deca interpolation upward in size can improve the print quality.

    How much image quality is lost by interpolation has a lot to do with how changing the grid size is.  If you through way too you some detailed left you create too many details, you have a soft blur.

    Convert your Image layer to a smart object layer and change just the scale layer live free transform and trim add a layer mask. Smart object layer pixel may not be actually interpolated just processing the composite view of dynamic object layer be changed.  In this way, you can change the transformation as several times if necessary and you worry about loss of image quality accumulates for the image of the dynamic object is still not turned the last transformation interpolation.

  • Need to shrink/resize an image. Could not find a way on the IPad version of sketch of Adobe.

    I recently downloaded Adobe Sketch. I started to sketch around with an image in my head, but what I does not fit within the vertical page. I want to resize the image and to finish the drawing on the page without all over again.

    I use sketches on an Air of IPad. Any help would be greatly appreciated.

    Hi, Ghislain,.

    Yes. Absolutely, you can do this. Type on the drawing layer that has art that you want to move/resize. Then on the shortcut menu that appears, choose transformation. You will be able to move/resize here.

    Let me know if this still isn't super clear.

    Sue.

  • Batch resize an image

    I'm trying to resize 60 images of 256 x 256PX to 256 x 128PX. I do this everyday for the size 100 x 100 when I do the photos but it WILL NOT accept 256 x 128, no matter what I do... it resizes to 128 x 128... not what I want... can anyone help please?

    Well I closed PS and re-opened and was finally able to record an action so all is good. Thank you all for your help, I really appreciate it

  • 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

  • What is the best way to resize an image, but keep the height and width of the same original size or format?

    What is the best way to resize an image, but keep the height and width of the same original size or format?

    I tried to use the function of the size of the Image, but when I changed the size of the image, the width has not changed with it.

    Thanks for the tips!

    Hi Landon.Luu,

    You want to keep the relationship between the width and height to be the same?

    Click the constraint between width and height to keep the ratio intact.

    Kind regards

    Claes

  • I have some pretty high resolution still panoramas I want to move from left to right, but when I resize the image to fit the image, the resolution drops to an unacceptable level. Is this possible? John

    I have some pretty high resolution still panoramas I want to move from left to right, but when I resize the image to fit the image, the resolution drops to an unacceptable level. Is this possible? John

    Make sure that before you add this photo to your project, you go to the preferences (under the Edit on a PC) and uncheck the default scale to the size of the image.

    Scaling of artificially reduced image size your photo - no matter how large - the size of your video image, make detailed pans and zooms like your impossible. When it is not checked, your photo will be in full resolution and you will only see a small part of it in the preview window.

    That said, don't forget that you work at video resolution, so some details will be lost. (Less so, if you change video high-def). And, of course, don't forget to make your timeline after you have added your pans and zooms to see a better representation of what your final video will look like.

  • need to resize the image to a larger size and without distorting

    need to resize the image to a larger size and without distorting

    Every time you a high-end image you sacrifice quality and introduce artifacts.

Maybe you are looking for

  • Couch Potato server by Mhynio 3.0.1.

    Program will not start on 10 Windows and OS 6.5.0 Error message Resource error is empty. Bad call NML Code: 22002010000 Help please! p.s. I can mess with SSH

  • Build failed if create an InvokeManager

    In the construction of the class, if I again create the InvokeManager, the construction process will be to be failed. It shows only a Red Cross in the project.  There is not any suspicion of error by which I can know what is the problem. If I delete

  • Message: Need IPv6 to join the Group of home when he tried to join the group home

    Original title: IPv6 When I try to join a homegroup on this computer, I get a message that says I need IPv6. I clicked on the adapter and went to proberties and I have IPv6 installed and it has a check mark in the box. So, it should work. When I clik

  • Integration of DRM with Hyperion Planning Application

    We try to decide whether to include DRM in our solution or not, and I'm new to this module.My question is:If I use the classic Hyperion application, do I need an ODI to integrate metadata between Application Hyperion and the DRM?What happens if I am

  • Setting up Email

    I have trouble to configure an e-mail within elements 13 client. To configure gmail, it seems that I have to downgrade my security level. I'm not picky about this. I also have a sympatico account and I can't seem to get the right settings for be... H