Zoom on the image Bitmap field

Good morning to all"

I want to zoom in on BitmapField. Is it possible to BB?

TNX your tips.

What do you mean by 'zoom in '?  If you want to enlarge a bitmap image, you can use EncodedImage.scaleImage32 (as long as you are able to get your image as an EncodedImage data).  Here's an example of utility code I had to scale an image based on its width or height.  Using this as a basis, it should be simple enough to adapt it to your specific needs.  If not, let me know; I have a lot of image processing code.

 public static EncodedImage scaleImageToWidth(EncodedImage encoded, int newWidth) {
        return scaleToFactor(encoded, encoded.getWidth(), newWidth);
    }

    public static EncodedImage scaleImageToHeight(EncodedImage encoded, int newHeight) {
        return scaleToFactor(encoded, encoded.getHeight(), newHeight);
    }

    public static EncodedImage scaleToFactor(EncodedImage encoded, int curSize, int newSize) {
        int numerator = Fixed32.toFP(curSize);
        int denominator = Fixed32.toFP(newSize);
        int scale = Fixed32.div(numerator, denominator);

        return encoded.scaleImage32(scale, scale);
    }

Tags: BlackBerry Developers

Similar Questions

  • mouse to zoom to the image control

    Hi all

    LabVIEW 2013 32-bit SP1

    Vision 2013 SP1 32 bit Wizard

    I read a bunch of images from a CameraLink camera and store it in a binary file.

    I then reset at the beginning of the file and read them.

    I have a loop that receives images one at a time and allows the user to select a specific image.

    I have an event loop in the while loop, to capture user events.

    I do a few filters, edge detection, overlays, etc.  (I don't think it's important to question, just to be thorough)

    Each image is displayed in a control from IMAQ Image.

    In case of a loop, I check for "mouse down" on the Image, and then I enter the coordinates where the user clicked.

    That works well.

    However, for this control when the user moves the mouse over the image, the mouse pointer changes under the microscope.

    When the user clicks on the image, I get the coordinates of the click, but the image is also "zoomed".

    I have initially display the image in the format 'fit to screen', and which seems to work very well.

    I would like to cut ownership of 'zoom on mouse click', but I can't find that in the list of properties.

    Any help will be appreciated.

    Thank you
    Jeff

    As soon as you create an indicator image tool KING before Panel Magnifier tool is selected.
    -You can make the current KING tool to the selection tool by creating the current "Tool KING" property node indicator image.

  • Limiting the URL of the Image (MySQL field) to a certain area/size

    Hello

    I have a database that contains a "Image URL" field for people to grab an image from the internet to the given equipment.

    The problem is that the images are all sorts of different sizes, and when it is displayed on the site, there may be an image that filled the entire page!

    I have the 'Image' of the Forms tab field in Dreamweaver, and it is the display of images. (As shown below):

    before.JPG

    For the moment, the image is so large, it overwrites all the text on one side.

    Is there a way for images to be limited and fill in a certain area?

    Here is a picture of what I mean. (Modified image)

    after.JPG

    Any help would be much appreciated!

    Thanks for the reply.

    I fixed it by creating a

    tag and instead to insert the form 'Field of the Image' I walked inot the mode of creation, while still in Code view. It grew up a different window with many more parameters for the image. Here I placed the desired height and the source of the image.

    Thank you very much for your help!

  • Using Javascript in Acrobat to emulate the Image LiveCycle field

    Hi all

    I have a pdf form complex with many validation & calculation javascript calls that really could use the functionality of LiveCycle image field: i.e. having a user with reader to insert their own image in a form to fill out.  Images have no need to be submitted or snippet somehow.

    Does perform a work around this feature in Acrobat 9 Pro (which I have) or X (which I might be able to get) with JS that could create or approximate the image field feature?  Given the complexity and the volume of calls JS, I don't see whether a conversion of form in LC value and recreate isn't an option at this point.  Any advice would be welcome.  Thank you in advance.

    Unfortunately no, which is a restriction unnecessary and stupid. Please submit a feature request for it in the hope that it will get restored someday. Feel free to add to it: http://forums.adobe.com/thread/743823?tstart=0

    This question was raised yesterday here: http://forums.adobe.com/thread/844010?tstart=0

    and here: http://forums.adobe.com/thread/844480?tstart=0

    However I am not at all convinced that Leonard R. is right. Even if it is, it would make them out of reach of most.

  • Restore the size of the image bitmap (image) and PPI

    Here's something that I have not found a quick solution after several years of use.

    The scenario is as follows:

    1. you receive a document with embedded images and no access to links original.

    2. the images are resized and proportions have changed. For example, PPI: 85.372 x 71.954 and the scale of the Image (H, V): 84.337%, 100.065%.

    Is there a quick way to change the scale of the image at 100%, 100% or 72 x 72 PPI?

    I always do this by calculating the percentage of that image has be restored by horizontally and vertically for the original report.

    See you soon.

    Mordy Golding provides this method on his Real World Illustrator blog:

    http://rwillustrator.blogspot.com/2008/11/technique-unembedding-images.html

    It gives a detailed description, but basically it's save as PDF, open in Photoshop, choose the option Images.

    Hope this helps

    Mike D.

  • How is it when I Zoom in pages now, it is not a zoom of the images too?

    I use Firefox for Mac desktop 38.0.5. I am running OSX Yosemite.
    Then I Zoom pages this does not zoom images. He is used to.
    Sometimes, it's the main reason I'm zoom... to see a captcha, or images as on tumblr or a news page.

    Please help and return this feature!
    Thank you, Tom.

    You can find this setting in the view menu:

    • View > Zoom > [] 'Zoom text only '.

    See also:

  • Download the image blob field

    Hello experts,

    I am trying to download an image via the input file to convert it to a blob field and then save it in the database.

    So I linked the value of the input file to create the blob through bean, I found on the internet.

    My Page binding components:

    < af:inputFile id = value = "#{UploadBean.file}" / 'inputImage' >

    < af:button text = 'Upload' id = 'btnUpload' action = "#{UploadBean.uploadImage}" / >


    My Bean:


    private BlobDomain img;

    private UploadedFile inasmuch;

    public UploadBean() {}

    Super();

    }

    public UploadedFile getFile() {}

    return inasmuch;

    }

    {} public void next (file UploadedFile)

    Inasmuch = file;

    }

    public void uploadImage() {}

    UploadedFile myfile = (UploadedFile) this.getFile ();

    IMG = createBlobDomain (myfile);

    System.out.println (IMG);

    }

    Private BlobDomain createBlobDomain (file UploadedFile) {}

    InputStream in = null;

    BlobDomain blobDomain = null;

    OutputStream out = null;

    try {}

    in = file.getInputStream ();

    blobDomain = new BlobDomain();

    out = blobDomain.getBinaryOutputStream ();

    ubyte [] buffer = new byte [8192];

    int bytesRead = 0;

    While ((bytesRead = in.read (buffer, 0, 8192))! = - 1) {}

    out. Write (buffer, 0, bytesRead);

    }

    in. Close();

    } catch (IOException e) {}

    e.printStackTrace ();

    } catch (SQLException e) {}

    e.fillInStackTrace ();

    }

    Return blobDomain;

    }

    But it seems to me that the file is still set to null after choosing an image, because it throws the following error message:

    <oracle.adf.common> <AdfDiagnosticsJarsVersionDumpImpl> <executeDump> <Pfad für den Dump der JAR-Version :C:\Users\user\AppData\Roaming\JDeveloper\system12.1.3.0.41.140521.1008\DefaultDomain\servers\DefaultServer\adr\diag\ofm\defaultdomain\defaultserver\incident\incdir_45/adf_DiagnosticsJarsVersionDump42_i45.txt>

    < oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl > < DiagnosticsDataExtractorImpl > < createADRIncident > < 46 event mit Problemschlussel 'ADFC-00032 [ADFc]' is >

    < oracle.adf.view > < RichExceptionHandler > < _logUnhandledException > < ADF_FACES - 60098:Faces - empfangt nicht behandelte Exceptions in Phase INVOKE_APPLICATION 5 cases >

    javax.faces.FacesException: #{UploadBean.uploadImage}: //C:/Users/user/AppData/Roaming/JDeveloper/system12.1.3.0.41.140521.1008/o.j2ee/drs/REA/ViewPflegeWebApp.war/de/test/viewpflege/pages/UploadPage.jsff @13,85 action = "#{UploadBean.uploadImage}": java.lang.NullPointerException "

    ...

    What I'm missing or doing wrong?

    Uusing JDeveloper 12.1.3

    Thank you!

    Hello

    Make sure that the UsesUpload of the property in your page jspx is true.

    also, for more information check this: https://tompeez.wordpress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-1/

    Kind regards

    Habib

  • the unstable image cropping slider control, jumps to the zoom of the image and lifestyle culture

    A problem that started right after a touch of support linked to the difficulties of the subscription and then LR thinking that another LR catalog has been opened.  The chassis of the crop cursor control is unstable.  When you attempt to drag a corner, culture window disappears and the cursor is create a zoom effect.  Hold down the mouse button causes the zoom to get in and out. Makes it absolutely impossible to culture. Zoom in and zoom control of the window in the X Y library function is affected in the same way. I used LR since LR3 and have 20 + K images in my catalogs, so I don't know how features should work. I use Windows 8.1 and since a year or two. The problem seems to get worse day by day. My last support contact picked up my screen and installed updates LR that I had stayed away from because things worked OK. I am now running 2015.3 Release, Camera Raw 9.3.  To deal almost exclusively with Nikon NEF files, even though I was converting them to DNG format until the last support suggested things would go faster (better?) if I stayed just in the NAVE.  Any suggestion would be appreciated. I'm not terribly computer warned, so changes to the system as back to an earlier version are not easy for me.  Tom

    Tom,

    It sounds like your mouse is dying. Try another and see if that fixes the problem.

    HAL

  • move the image bitmap overlay 2 at a time

    I have 2 bitmaps overlapping (one is a card and the other an indicative icon) is a card offline, the question is when I move around the map and move along the map and the icon, it gives me error, the two movement with this code:

    navigationMovement protected boolean (int dx, int dy, int, int time status) {}
    left + = (dx * HORZ_SCROLL_FACTOR);
    Top + = (dy * VERT_SCROLL_FACTOR);

    If (on the left<0) left="">
    If (upper-<0) top="">
    If (left > maxLeft) left = maxLeft;
    If (top > maxTop) top = maxTop;

    invalidate ();

    Returns true;

    Thank you

    This error means usually only one of the arguments you provided was an invalid value.

    The best thing to do is to set a breakpoint and check the values provided to this function.

    My guess is that either top > left or bitmap (xBitmap) .getHeight > .getWidth bitmap (xBitmap).

    E.

  • image bitmap field not seized touch event

    Hi all

    I've implemented a customButton class that extends from BitmapField to tuchscreen.

    The CustomField is FOCUSABLE.

    I placed 6 these customButtons in a horizontal field.

    First 3 buttons are getting clicked correctly but the last three are not capture any key event.

    The procedure is the same for all. But still this is happening.

    Can someone tell me why its happening? How can I solve this problem?

    I solved the problem

    the code is shown in the link

    http://supportforums.BlackBerry.com/T5/Java-development/capturing-click-event-of-buttons-oat-right-c...

  • animate CC animation jerky with the zoom of the image?

    Does anyone else know this? whenever I have a png or jpeg and I animate it to zoom out, it looks slick animated CC, but once published, it is very rough in all browsers I test it in. how to fix this?

    If it's canvas, try to simplify the acceleration you have. Just do a regular ease, not a custom.

  • iOS 10 zoom causing the shift &amp; blocking problem

    Hello

    I have several devices running iOS 10 ranging from a 5 iPad iPhone mini 4, to iPhone and iPad Air 2.  I noticed that when the zoom toggle in the settings is enabled (whether zoomed or not), I feel an enormous amount of lag, tactile and inaccurate affecting blocking problem.  No matter if I am completely zoom in or zoom out (double-tap with 3 fingers), a simple navigation creates all sorts of problems for me.  I will describe a few questions I meet below. ;

    (1) contact command will be sometimes not.  Even simple measures such as scrolling through the different pages on the homescreen to pinch to zoom in the image and Safari have problems

    (2) when zoomed in, many times, my button are inaccurate.  For example, a major problem that I have is that in the mail application.  If I drag to the left to remove an e-mail, I get sporadic movements.  In most cases, I have to slide slightly to the right of the line to do a full sweep.  In other cases, sometimes touching a button like 'OK' or by pressing another button would not register.  I may support slightly above, below, or around her to enroll.  It is extremely annoying.  In particular, I have this problem with my iPad 2 Air.  I'm leaning towards it being a defective scanner.

    Please note that when the zoom toggle is set to off in the settings app, I have no problem with delay or lack of response.

    Anyone else have this same problem?

    I'm having this same issue. Both on my iPhone and my iPad. The two running iOS 10 for now. The problem is not related to iOS 10 in my opinion, because I had this problem for awhile now.

    Affecting the zoom toggle OFF makes the question to go far, but of course that's not the solution. There is a reason why I need this feature to zoom. Deactivation of the zoom feature makes it very difficult for me to use my iPhone and iPad in some circumstances. So, I find myself constantly switch the zoom feature and LEFT. Very annoying. I hope that we will have a fix for it any time soon.

  • I have a sony dsc-800w if I'm reviewing photo and zoom in the picture - is there a way to save him.

    I have a sony dsc-800w if I'm reviewing photo and zoom in this picture - is there a way to save the zoom in the image.

    HI mary08,

    Welcome to the community of Sony!

    The camera doesn't have the ability to crop or resize the image. To do this, you can use the software House Playmemories to change the image.

    If my post answered your question, please mark it as "accept as a Solution. Thank you, Mitch

  • Adjust the width of the image and position automatically with the size of the browser.

    Hi, I am trying to place an image on the left edge of the browser window, and the width of the image is 50% the size of browser window. Similar effect can be found on this Web site. Lenzing Instruments

    Note that, like the browser zoom out, the image is half of the width of the browser window and align the right edge of the browser.

    I am new to Muse. Not sure if it is possible to achieve this effect in Muse. I know that Muse adjustable width 100% image browser window, but how about 50%, 75% of the other user-defined proportion?

    Any help will be appreciated!

    By saying that I mean that you can use the features available where pine will set the location of the content, full-width makes the background or the flexible content with edges of browser. Not all items will be covered to significant effect.

    Thank you

    Sanjit

  • How to change the size of the image display

    I've recently upgraded to CS5.1 of CS3. In CS3, there is an icon in the Panel on the right side of the screen (I don't know the name of these panels) which had the ability to zoom on the image and another icon to zoom out.

    I can't find this capability in CS5... Could someone please tell me how to activate it?

    Thank you!

    Edit

    You mean window > Navigator?

    Other than this with command-space-click-drag zoom and keyboard shortcuts are options.

Maybe you are looking for