Zoom in/out for CLDC

Hi all,
Can you help with a zoom in/out function? I've seen several methods with area filtering for Java SE but they don't seem to be the best for mobile devices. In the oder side i have a function with two joined loops in both image-dimension which extends/reduces each pixel. The performance is not so good and proccessing time ist too long for large images.
Thanks in advance,
Gonzalo

[check out this|http://www.java-tips.org/java-me-tips/midp/how-to-implement-zoom-in-and-zoom-out.html]

Similar Messages

  • How do you scale your wallpaper and zoom it out for IOS7?

    I want to make a picture smaller for my background but IOS 7 wont let me any ideas?

    i know how to fix this!
    Screenshot the picture you want to set as your background, then set the screenshot as your background. It will be zoomed in a little, but it's better than just turning the parallax effect on.

  • T510: TouchPad no longer allowing for zoom in/out

    My TouchPad is all the sudden no longer allowing for zoom in/out.  How do I restore that function. 
    Moderator Note: Edited subject to match content.

    My T520 has recently developed a similar problem.
    With no obvious warning it now seems unable to recognise the trackpad/point. I've tried various combinations of uninstalling/installing drivers etc with no success.
    When clicking on the mouse tab in Control Panel an error message says: Unable to connect to the Synaptics Pointing Device. It then suggests removing the synaptics driver and then reinstalling other mouse drivers. This doesn't make sense as I don't have any other mouse drivers installed (bar the in-built Win7 ones which can't be removed anyway). Then rebooting the system results in no pointing devices being available at all. The trackpad gets recognised as a PS2-compliant device and prompts installation of drivers (from synaptic) which just gets back to square one.
    Also, the control panel mouse tab won't show the ultranav utility even though that is installed properly.
    So, I'm having to use an external mouse as the system doesn't seem to be able to properly use the trackpad/point. I'll keep troubleshooting but suspect this may be a software/driver issue as it was working perfectly up until recently and the hardware can still "see" the device. Both are enabled in BIOS.
    Any other people experienced similar problems?
    T520 (4242-CTO) Win7 64Pro

  • Can anyone confirm if/why the finger gesture for zoom stopped working for 3D content in reader XI ?

    I use 3DPDF to demonstrate products all the time on my touch screen tablet (win 7 64)
    When I upgraded to reader XI, one key feature stopped working.
    This is the Zoom gesture (spreading fingers closer together or further apart to zoom out/in).
    I thought I was crazy at first, so I tried all sorts of setting nothing brought it back.
    I downgraded to Reader X, and the feature is back.
    I really need the features in XI, but I also really enjoy this zoom gesture.
    I know I can simulate it sort of, by selecting zoom on the toolbar, but it really is not as easy or as intuitive.
    What happened ?  Was this an oversight ?  Or was it taken out for some specific reason ?
    I recently tried this on 2 new all in one touch screen pc's on Win 8, and the same is true there as well (it does not work).
    Any other work around ideas ?
    Thanks

    Confirm I see this as well. Thanks for spotting it! Will log a bug.

  • Zoom and Pan for Adobe Premiere Elements 12?

    I have Adobe Premiere Elements 12. I would like to zoom and pan into a video, but without that slow zoom in/out effect. Basically, I want it like a quick cut close up then back to the original size. I've been trying but nothing seems to work. There's that slow zoom in/out every time I try to get a quick cut in and a quick cut out. Does anyone have any ideas to get this? Thanks

    nbovell94
    Please check into the details of the Premiere Elements 12 Pan and Zoom Tool. I think that you may be overlooking your opportunities for what you want with that tool, namely, the "Hold" set and the "Pan Time" set and combination there of.
    Please see
    Adobe Premiere Elements 11 * Pan and zoom to create video-like effect
    Please review and consider and then we can discuss this further if necessary.
    Thanks.
    ATR

  • Adobe illustrator CC Zoom in & out problem

    Hi,
    I am facing an issue right now..
    When i open a large AI file that above 1GB, then i zoom in & out .. the design will go out of form.
    However, when i open small file like 400+ MB, no issue on zoom in & out.
    I really no idea for this issue..
    Here is my PC spec,
    Windows 8.1 Professional
    3.40 gigahertz Intel Core i7
    32GB RAM
    NVIDIA GeForce GTX 650
    TQ.

    Moving this discussion to the Illustrator forum.
    Wandasgirl I would recommend reviewing your installation logs for errors.  Please see Troubleshoot install issues with log files | CC - http://helpx.adobe.com/creative-cloud/kb/troubleshoot-install-logs-cc.html for information on how to locate and interpret your installation log files.  You are welcome to post any errors you discover to this discussion.

  • Alt + mouse scroll (Zoom-In/Out) doesn't work. [was: Why it doesn't work in Illustrator?]

    Alt + mouse scroll (Zoom-In/Out) doesn't work in my illustrator program.
    What should I do?

    It is a know issue, no solution for the moment.
    But Adobe is working on this see here-> http://forums.adobe.com/message/5423070#5423070

  • ScrollPane zoom in/out

    Hello, this is my first post.
    I'd like to add zoom in/out function to my ScrollPane, and make shortcut (CTRL+MOUSE SCROLL UP/DOWN) for it. ( like Inkscape )
    I made the following code ( Canvas ) to achieve this, but have some problems.
    *1. How can I prevent ScrollBar's thumb to move when pressing CTRL?*
    When ScrollBar is visible and ScrollBar's thumb (or scroller, knob) has room to move, CTRL+MOUSE SCROLL UP/DOWN doesn't work because the thumb moves instead of zooming in/out.
    When the thumb moves up/down to bar's end, then zoom in/out finally works fine.
    *2. ScrollEvent handler is sometimes not called in ScrollPane*
    When ScrollBarPolicy is not ScrollBarPolicy.ALWAYS and Scrollbar is not visible, SOMETIMES CTRL+SCROLL UP/DOWN operation dosen't work.
    (ScrollEvent handler is not called. For other panes, ScrollEvent works fine. Please check MouseScrollEventTest below)
    Thank you in advance.
    Canvas
    public class Canvas extends Application {
         DoubleProperty zoom = new SimpleDoubleProperty(1.0);
         final double MAX_ZOOM = 3.0;
         final double MIN_ZOOM = 0.1;
         @Override
         public void start(Stage stage) throws Exception {
              Rectangle rectangle = RectangleBuilder.create()
                   .width(1000).height(1000)
                   .fill( LinearGradientBuilder.create()
                        .stops(new Stop(0, Color.BLUE), new Stop(1, Color.RED))
                        .build()
                   ).build();
              ScrollPane scrollPane = ScrollPaneBuilder.create()
                   .content(
                        GroupBuilder.create()
                             .children(rectangle)
                             .build())
    //               .hbarPolicy(ScrollBarPolicy.ALWAYS)
    //               .vbarPolicy(ScrollBarPolicy.ALWAYS)
                   .build();
              rectangle.scaleXProperty().bind(zoom);
              rectangle.scaleYProperty().bind(zoom);
              scrollPane.setOnScroll(new EventHandler<ScrollEvent>(){
                   public void handle(ScrollEvent event) {
                        if( !event.isControlDown() ) return ;
                        double zoomValue;
                        if ( event.getDeltaY() > 0 ) {
                             zoomValue = zoom.get() + 0.1;
                        } else {
                             zoomValue = zoom.get() - 0.1;
                        if( zoomValue > MAX_ZOOM || zoomValue < MIN_ZOOM ) return ;
                        zoom.set(zoomValue);
              Scene scene = SceneBuilder.create()
                        .width(500).height(500)
                        .root(scrollPane)
                        .build();
              stage.setScene(scene);
              stage.show();
         public static void main(String[] args) {
              launch(args);
    Mouse Scroll Event Test
    public class MouseScrollEventTest extends Application {
         BorderPane bPane;
         ScrollPane sPane;
         public void start(Stage stage) throws Exception {
              EventHandler<ScrollEvent> handler = new EventHandler<ScrollEvent>() {
                   public void handle(ScrollEvent event) {
                        System.out.println(event);
              bPane = new BorderPane();
              bPane.setPrefSize(100, 100);
              sPane = new ScrollPane();
              sPane.setPrefSize(100, 100);
    //          sPane.setContent( new Rectangle(50,50) );
    //             This works fine.
              bPane.setOnScroll(handler);
    //             Sometimes, this is not called.
              sPane.setOnScroll(handler);
              HBox root = new HBox();
              root.getChildren().addAll(bPane, sPane);
              Scene scene = new Scene(root);
    //          scene.setOnScroll(handler);
              stage.setScene(scene);
              stage.show();
         public static void main(String[] args) {
              launch(args);
    }--- My Environment
    Windows Vista
    JavaFX 2.0 SDK
    Edited by: 932474 on 2012/05/07 4:31
    Edited by: 932474 on 2012/05/07 4:47

    Thank you for the good example.
    But actually, I just give up using ScrollPane and created a ZoomCanvas which can zoom in/out and pan.
    The code is here.
    Any comments or improvement would be appreciated.
    ZoomCanvas
    public class ZoomCanvas extends StackPane {
         private ZoomController zoomController;
         private Group contentWrapper;
         private double translateXWhenMousePressed, translateYWhenMousePressed;
         private double xWhenMousePressed , yWhenMousePressed;
         private static class ZoomController {
              private int deltaCount = 0;
              private final double DEFAULT_ZOOM = 1.0;
              private boolean useAnimation = true;
              private DoubleProperty zoomMax   = new SimpleDoubleProperty(10.0);
              private DoubleProperty zoomMin   = new SimpleDoubleProperty(0.1);
              private DoubleProperty zoomDelta = new SimpleDoubleProperty(1.2);
              private DoubleProperty zoom      = new SimpleDoubleProperty( DEFAULT_ZOOM );
              public ZoomController() {
              public void zoomIn() {
                   double zoomValue = DEFAULT_ZOOM * Math.pow(zoomDelta.get(), deltaCount+1);
                   if( zoomValue > zoomMax.get() ) {
                        setZoom(zoomMax.get());
                        return;
                   deltaCount++;
                   setZoom( zoomValue );
              public void zoomOut() {
                   double zoomValue = DEFAULT_ZOOM * Math.pow(zoomDelta.get(), deltaCount-1);
                   if( zoomValue < zoomMin.get() ) {
                        setZoom(zoomMin.get());
                        return;
                   deltaCount--;
                   setZoom( zoomValue );
              public void setZoom( double zoomValue ) {
                   if( useAnimation ) {
                        Timeline zoomTimeline = new Timeline();
                        zoomTimeline.getKeyFrames().add(
                             new KeyFrame(Duration.millis(300), new KeyValue(zoom, zoomValue))
                        zoomTimeline.play();
                   } else {
                        zoom.set(zoomValue);
         public ZoomCanvas(Node content) {
              super();
              Rectangle clip = new Rectangle();
              clip.widthProperty().bind(widthProperty());
              clip.heightProperty().bind(heightProperty());
              // to adjust layoutBounds when drawingPane's scale changes
              contentWrapper = new Group(content);          
              StackPane.setAlignment(contentWrapper, Pos.CENTER);
              getChildren().add(contentWrapper);
              zoomController = new ZoomController();
              content.scaleXProperty().bind(zoomController.zoom);
              content.scaleYProperty().bind(zoomController.zoom);
              content.translateXProperty();
              hookEvents();
              setClip(clip);
         private void hookEvents() {
              setOnScroll(new EventHandler<ScrollEvent>() {
                   public void handle(ScrollEvent event) {
                        if( event.getDeltaY() > 0 ) {
                             zoomController.zoomIn();
                        } else {
                             zoomController.zoomOut();
              setOnMousePressed(new EventHandler<MouseEvent>(){
                   public void handle(MouseEvent event) {
                        if( !event.isMiddleButtonDown() ) return ;
                        translateXWhenMousePressed = contentWrapper.getTranslateX();
                        translateYWhenMousePressed = contentWrapper.getTranslateY();
                        xWhenMousePressed = event.getX();
                        yWhenMousePressed = event.getY();
                        setCursor(Cursor.MOVE);
                        event.consume();
              setOnMouseReleased(new EventHandler<MouseEvent>(){
                   public void handle(MouseEvent event) {
                        setCursor(Cursor.DEFAULT);
              setOnMouseDragged(new EventHandler<MouseEvent>(){
                   public void handle(MouseEvent event) {
                        if(!event.isMiddleButtonDown())
                             return;
                        contentWrapper.setTranslateX( translateXWhenMousePressed +  event.getX() - xWhenMousePressed );
                        contentWrapper.setTranslateY( translateYWhenMousePressed +  event.getY() - yWhenMousePressed );
                        event.consume();
    ZoomCanvasTest
    public class ZoomCanvasTest extends Application {
         public void start(Stage primaryStage) throws Exception {
              Rectangle rect = new Rectangle(0,0,100,100);
              rect.setStyle("-fx-fill: blue;");
              Circle circle = new Circle(100,100,50);
              circle.setStyle("-fx-fill: red;");
              Pane canvasContent = new Pane();
              canvasContent.setStyle(
                        "-fx-background-color: papayawhip;" +
                        "-fx-border-color: black;");
              canvasContent.getChildren().add(circle);
              canvasContent.getChildren().add(rect);
              ZoomCanvas canvas = new ZoomCanvas(canvasContent);
              canvas.setStyle(
                   "-fx-background-color: mistyrose;" +
                   "-fx-border-color: black;"
              ToolBar toolBar = new ToolBar();
              toolBar.setOrientation(Orientation.VERTICAL);
              toolBar.getItems().add( new Button("sample") );
              BorderPane root = new BorderPane();
              root.setCenter(canvas);
              root.setRight(toolBar);
    //          root.getChildren().addAll(canvas, toolBar);
              Scene scene = new Scene(root);
              primaryStage.setScene(scene);
              primaryStage.show();
         public static void main(String[] args) {
              launch(args);
    }Edited by: 932474 on 2012/05/08 10:17
    Edited by: 932474 on 2012/05/08 10:40
    Edited by: 932474 on 2012/05/08 10:56

  • Video zoom in/out

    i am having troulbe zooming in/out in video mode. i have to manually zoom in/out in photo mode, then go back to video mode to stay at those current settings, and shoot the video from there... how can i change my zoom lense in video mode?

    sniper8752 wrote:
    well thats dumb!
    The camera is not the video recorder, two separate applications, they don't interact.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Zoom in-out and rotation in trackpad

    Zoom in-out and rotation in trackpad doesn't work in iPhoto, Aperture, Preview, Finder. Any solution?
    It works perfect at safari

    What context in the Finder would you expect zoom to work?  same question for rotate?
    I am able to see rotate and zoom working in iPhoto and Preview.  I do not have Aperture so I cannot check.

  • OBI HD App No zoom in/out option

    Hi Experts,
    I have got Oracle BI HD App on my ipad2 and its pointing to OBIEE 11.1.1.6.8 version and Zoom in/out is not avialable in it. I can see the dashboards as i see on any web browser.
    Earlier when i pointed Oracle BI HD App to OBIEE 11.1.1.5.0 , zoom in/out option was avaiable and I need not have to scroll out horizontally(verticall scroll is fine).
    please provide inputs if there is any configuration required for OBIEE 11.1.1.6.8 version Zoom in/out so that whole dashboard tab fits into my ipad screen and zoom in/out can be used.
    Cheers
    Ankit

    Oracle Mobile HD on iPad Doesn't Allow to "Pinch to Zoom" or to Switch to "Mobile Layout" [ID 1534983.1]
    Follow - BUG:15940998 - OBIEE MOBILE FEATURES MISSING AFTER PATCHING FROM 11.1.1.5 TO 11.1.1.6.X
    HTH,
    SVS

  • SX700 has a loud zoom in/out, which got picked up by the video. Is it normal?

    Hi All,
    I just received my Canon SX700 and went out for a test today. The picture quality wes good, the video image quality was great as well. I heard zooming in and out sound when I was shooting the video using SX700. After I came home and play it on my computer, the zooming in/out sound is indeed loud and clear. In addition, I heard clicking sound in some zooming in and out as well. Is it normal? Is it an one off defect? Should I return it? And comment/ suggestion/ advice is appreciated!
    Best regards,
    Sally

    The noise you can here is the zoom motor stopping and starting and very little you can do about it. The internal microphone is only doing it's job... picking ALL the sound up it detects.
    These cameras in the video mode is only a gimmick, the quality of these internal microphones leaves a lot to be desired, the only way round it is to use an external microphone, whether these cameras have that facility I can't say, do consult your user manual on using an external mic.
    Dave

  • How to zoom in/out AND resize image?

    sorry if they are stupid questions but i can't seem to find how to resize and image and zoom in/out. I am using Version 3 of Photoshop Album Starter Edition.
    thanks in advance.

    Don't know what you want to do...
    Resize the actual image file? If so, PSA SE can't really do that.
    Just look at an image at different magnifications? Select image, F11 for full screen, then use CTRL/+ and CTRL/- to adjust.

  • Netbeans 6.5 doesn't detect Sun Java Wireless 2.5.2 for CLDC

    I have netbeans 6.5 installed on my system and the Sun Java (TM) Wireless Toolkit 2.5.2 for CLDC is located in the usual folder i.e C:\Program Files\NetBeans 6.5\mobility8\WTK2.5.2
    It was working fine for some time but since yesterday it has stopped working suddenly although nothing has been modified in the installation folders
    The WTK 2.5.2 is not accessible in netbeans IDE anymore. I have tried to add it from "Java Platform Manager" but netbeans does not seem to work
    The procedure I do is
    One in Netbeans IDE
    1. Open Java Platform Manager
    2. Add Java Platform
    3. Select "Java ME MIDP Platform Emulator"
    4. Click "Next"
    nothing happens... just stays at this screen
    I tried to uninstalled and reinstalled netbeans 4 times nothing seems to work.
    Can any one help me out.

    Found the solution.... The Configuration folders for NetBeans were not getting deleted by unInstaller.
    This is what you have to do to get it working
    1. Completely un install the NetBeans IDE. (to be on the safe side you can uninstall jdk as well)
    2. Delete all left over registry entries, if any.
    3. Go to your user profile folder. that is C:\Documents and Settings\myusername\
    4. There will be 4/5 folders for NetBeans.. delete all of them. (1 of them is called nbi)
    5. back up the contents of your workspace folder,. and delete it.
    6. Reinstall NetBeans 6.5 IDE.
    7. Now It will detect J2ME..
    So the conculsion is the Netbeans uninstaller should delete (or at least provide option) these configuration folders...

  • Zoom in/out gesture UIView

    Hi, i've been trying to capture gesture zoom in/out in a UIView.
    Code:
    UITouch *first = [twoTouches objectAtIndex:0];
    UITouch *second = [twoTouches objectAtIndex:1];
    CGPoint firstPoint = [first locationInView:self];
    CGPoint secondPoint = [second locationInView:self];
    CGFloat initialDistance = distanceBetweenPoints(firstPoint, secondPoint);
    I'm using the function distanceBetweenPoints, the problem is that firstPoint or secondPoint always is 0.00, 0.00 and for that reason the result is the value of one of them.
    I need that the booth values should be distint to zero for obtain the real distance.
    The frame of the view is: (0, 0, 320, 417).
    The functionality that i'm developing is something like zoom in/out of google maps.
    Thanks,

    Correction:
    NSSet *allTouches = [event allTouches];
    NSArray *twoTouches = [allTouches allObjects];
    UITouch *first = [twoTouches objectAtIndex:0];
    UITouch *second = [twoTouches objectAtIndex:1];
    CGPoint firstPoint = [first locationInView:self];
    CGPoint secondPoint = [second locationInView:self];

Maybe you are looking for

  • Printer and Scanner don't work anymore since Yosemite updating

    Hello and thanks for your welcome, After OS X Mountain lion and lion (all my softwares working) i update to Mavericks (no more scanner)  and after to Yosemite (no more printer) and my computer said that PPC applications no longer supported...  (i'm s

  • Group Reconcile for Vendor master

    Hello, I want to group reconcile account for choose when create vendor master data in FK01 For example. I have 10 reconcile account for AP and 3 vendor group But I want to group reconcile account 1, 2 , 3 only for vendor group 1 reconcile account 4,

  • Best Practice type question

    Our environment currently has 1 Connection factory defined per JMS Module. We also have multiple queues per JMS Module.           In other J2EE AppServer environments I have worked in, we defined 1 connection factory per queue.           Can someone

  • Return to front window the image changes back to the first one

    I have two images loaded in sequence. After loading the second image, I put the frame into the background. When I open the image frame (to the front window), the first image is shown (but not the second as expected). Why and how to show the lastest i

  • Objects authorizations

    Dear Gurus, We have two transactions with the same objects authorizations CJV1 and CJ20N, We would like that some users had authorization activity “to create” in the Tscode CJV1 and in the CJ20N only “modify”. But when We tried to do this the user ha