scrolling problem large bitmap image

City previous forums:

Comments: comments
scrolling problem large bitmap image
Posted: Sep 28, 2007 14:47
 
I want to scroll through a large bitmap image.i have read previous threads.i have added a null field before bitmap field. But the big picture scrolls, but shows an arrow down.
Please help me.
Thanks in advance.

wang0043

Messages: 12
Join date: September 2007

Re: image to large bitmap scrolling problem
Posted the: October 1, 2007 03:35
 
I have the same problem. After testing different ways using the BitmapField, I just changed paint the bitmap on the screen instead. More write the paint method and use drawbitmap to draw the bitmap to the screen. Track action wheelball to paint the bitmap can achieve the effect of view.

Comments
Re: image to large bitmap scrolling problem
Posted the: 3 October 2007 18:10
 
Can you guys post the code on how it's done?
Thank you

Comments: vicky
Re: image to large bitmap scrolling problem
Posted the: July 19, 2008 02:33
 
Hello

I get the same scrolling image problem. Can you please suggest some way

thanx

What kind of manager added the BitmapField to?  The support of the Manager there vertical or horizontal scrolling style defined?

Here is an example of code that I use to show how to scroll through a screen image:

Scrolling Image recipe

The image of "test.png" is in the same folder as the source of java if you want to download that as well.

Tags: BlackBerry Developers

Similar Questions

  • Problem with bitmap images within the AI CC

    I seem to have this problem to use the images seen in Photoshop look clean and high resolution, but when placed inside an AI CC file, or when HAVE is exported for the customer, looks jagged and pixilated.

    First of all, here is the read logo to the PSD.  As you'll see it's quite clean and high resolution:

    VIEW PSD.jpg

    So here is this exact logo even after that I placed it in a file Illustrator CC.  Note the surrounding vector images are clean - as it should-, but the logo does not look clean at all:

    psd and ai.jpg

    When I export the JPG or PNG file, everything looks good, as it should, except the logo.  I'm really strung on what do about it.  I know I could re - create the logo that you see in the above photos, but that would be a lot of work and there must be a way to get a bitmap image to work inside AI CC image.  All the tips are greatly appreciated.  Thank you.

    I don't see any reason why this shouldn't work, but it does indeed seem horrible.

    Have you tried to disable the GPU preview?

    You can do this in preferences > performance GPU and untick the box Performance GPU.

    You can also temporarily switch using Cmd/Ctrl E.

    I have searched the logo, found a SVG version (so you can use a vectorized version), opened in artificial intelligence.

    Also, I opened the version HAVE in Photoshop and saved as a psd.

    It displays perfectly crisp and clear in Illustrator.

  • Biggest problem of Bitmap image

    Hello

    1. work on the version of BB storm (9500/9530 Simulator) is v4.7.0.75
    2 opportunity BB JDE 4.7
    3. the request is:

    I display a larger image bitmap using the drawBitmap() method. It shows only a part of the image.

    now, I want to see the rest of the image through scrolling.

    is there a method (or) the idea to do this in blackberry.

    Thank you

    Sendhil

    Yes you can.

    Concerning

    Bika

  • Management of scrolling problem

    Hello

    I have a sub VerticalFieldManager class. It shows a picture and some text and components. I show this in 2 ways either direct and via a pop-up screen. It displays directly works fine. For display on a pop-up screen, I added

    Super(VERTICAL_SCROLL |) VERTICAL_SCROLLBAR | HORIZONTAL_SCROLL | HORIZONTAL_SCROLLBAR);

    But only the vertical scroll works. Horizontal scrolling does not work. I put the picture as

    setBackground (BackgroundFactory.createBitmapBackground (picture));

    & text in object & components in sublayout. Searching the problem on this site, I found the solution "ScrollingImageRecipe" of St. Peter on http://supportforums.blackberry.com/t5/Java-Development/large-bitmap-image-scrolling-problem/m-p/214...

    Now, I view the image in object by using graphics.drawBitmap. By implementing these components added in sublayout are not visible. I guess that the painting is inspired by the componetns image and are not visible.

    How to make these visible front? Basically, to display a picure in the background with horizontal & vertical scrolling with text placed in the paint & components available under?

    Can someone help me with this problem. Any help is appreciated.

    Thank you

    Kevin wrote:

    Can give you the kind of nickname to treat navigationMovement more clearly and precisely.

    Thank you

    Something along the lines of:

    protected boolean navigationMovement(int dx, int dy, int status, int time) {
      if (dx != 0) {
        int maxScroll = getVirtualWidth() - getVisibleWidth();
        int currentScroll = getHorizontalScroll();
        currentScroll += dx * SCROLL_STEP;
        currentScroll = Math.max(0, Math.min(currentScroll, maxScroll));
        final int targetPos = currentScroll;
        UiApplication.getUiApplication().invokeLater(new Runnable() {
          public void run() {
            setHorizontalScroll(targetPos);
          }
        });
        return true;
      }
      return super.navigationMovement(dx, dy, status, time);
    }
    
  • Problem with a Bitmap image in a ButtonField (get a 104 NullPointerException error)

    Hi, I'm a beginner in programming BlackBerry Apps, well...

    I tried to create a simple ButtonField customized with a bitmap inside, but I constantly get an error 104 eception: NullPointerException, here is my code to field custom buttond.

    import net.rim.device.api.ui.component.ButtonField;import net.rim.device.api.ui.Graphics;import net.rim.device.api.system.Bitmap;
    
    public class CustomButtonField extends ButtonField{  
    
      private Bitmap imagen;
    
      CustomButtonField(Bitmap imagen, long style){
    
          super(style);     this.imagen = imagen;                     }
    
      public int getPreferredWidth(){
    
                    return 60;        }
    
      public int getPreferredHeight(){
    
          return 60;        }
    
     protected void paint(Graphics graphics) {
    
          graphics.drawBitmap(0, 0, imagen.getWidth(), imagen.getHeight(), imagen, 0, 0);   }
    
       protected void layout(int width, int height) {
    
          setExtent(getPreferredWidth(), getPreferredHeight());
    
        }  }
    
    import net.rim.device.api.ui.container.MainScreen;import net.rim.device.api.system.Bitmap;
    
    public class PruebaScreen extends MainScreen{    
    
      private CustomButtonField boton;
    
      PruebaScreen(){
    
          Bitmap imagen = Bitmap.getBitmapResource("res/img/icon.png");     boton = new CustomButtonField(imagen, 0);     add(boton);
    
      }}
    

    I suspect that my problem is due to the method of painting or the page layout, I don't know... I hope someone can help me, thank you very much in advance.

    Check if your getBitmapResource returns any non-null Bitmap image.  Specify the path correctly may take a few tries ("' / res/img/icon.png '," img/icon.png", etc.")

  • Hi, I use lightroom 5 and have been for several years.  Today I imported several batches of today images from different cameras without any problem, but the images of a particular card (with an incredibly large memory) does not matter.

    Hi, I use lightroom 5 and have been for several years.  Today I imported several batches of today images from different cameras without any problem, but the images of a particular card (with an incredibly large memory) does not matter.  I see other people have had similar problems, but I am not able to follow these solutions and would very much help here.  I have an IMac.

    If you had probably two problems

    Permissions, the other is the hardware problem causing slow import and the card cannot be read by your operating system.

  • Crop a part large bitmap shortly by given the height and width

    Hello guys '

    I need to combine the portion of the bitmap image in 4 large bitmaps. It's not a problem to combine.

    But I don't know how of the cultures of the big picture.

    are there any examples of code to just anyone?

    Please help me guys

    TNX'

    You can put the bitmap in a table, remove the pixels you want to go and recreate a bitmap image

  • get the Bitmap Image of the web site or remote location

    Hi, yesterday I asked for some ease of image horizontal scorlling with blackberry. It's work very well. Thank you for all.

    But I could not do my job. What I need, that I have to get the Image from a web site (not in the project of ths) and display it in the BB device. I can do this and I get byte array and show the image using BitmapField. But this installation of scrolling does not work with the bitmap field.

    Is is them possible to get my web site dynamic images of the Bitmap object?

    Here is the code that you sent me.

    // ------------------------------------------

    package com.falseflag.blackberry.recipes;

    Import net.rim.device.api.system.Bitmap;
    Import net.rim.device.api.ui.Graphics;
    Import net.rim.device.api.ui.UiApplication;
    Import net.rim.device.api.ui.component.Dialog;
    Import net.rim.device.api.ui.container.MainScreen;

    class ScrollingImageRecipe extends UiApplication {}

    private class ScrollingImageScreen extends form {}
    private static final int HORZ_SCROLL_FACTOR = 10;
    private static final int VERT_SCROLL_FACTOR = 10;

    Bitmap bitmap;
    int left = 0;
    high int = 0;
    int maxLeft = 0;
    maxTop int = 0;
           
    public ScrollingImageScreen() {}
    bitmap image = Bitmap.getBitmapResource ("test.png");
           
    If (bitmap == null) {}
    UiApplication.getUiApplication () .invokeLater (new Runnable() {}
    public void run() {}
    Dialog.Alert ("Failed to load image");
    System.Exit (0);
    }
    });
    return;
    }
               
    If (bitmap.getWidth () > Graphics.getScreenWidth ()) {}
    maxLeft = bitmap.getWidth () - Graphics.getScreenWidth ();
    }
               
    If (bitmap.getHeight () > Graphics.getScreenHeight ()) {}
    maxTop = bitmap.getHeight () - Graphics.getScreenHeight ();
    }
    }
           
    protected void paint (Graphics graphics) {}
    If (bitmap! = null) {}
    graphics.drawBitmap (0, 0, Graphics.getScreenWidth (), Graphics.getScreenHeight (),
    bitmap, left, top);
    }
    }
           
    protected boolean navigationMovement (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;
    }
    }

    Public Shared Sub main (String [] args) {}
    ScrollingImageRecipe app = new ScrollingImageRecipe();
    app.enterEventDispatcher ();
    }
       
    {ScrollingImageRecipe()}
    pushScreen (new ScrollingImageScreen());
    }

    }

    //-------------------------------

    Please be so kind to give me a solution for this issue.

    You can use a browserfield to display web content in your application.  Take a look at the browserfielddemo provided with the BlackBerry JDE for example

    If you ask how to connect to a web site, please see the httpdemo.

    This example shows how to create a scrolling image field.

    -Creates a scrolling Image field
    Article number: DB-00681

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800345/...

  • Cannot select more than one bitmap image in desktop Animate

    I can't select more than one bitmap image in desktop Animate. Always select the same object, what should I do?

    I guess these bitmaps are on the scene. They are all on the same layer? Who is always selected is large and, perhaps, on top of all the others?

    If the bitmaps are all on one layer, you can separate each in separate layers. Once you do this, you can lock / unlock layers individually so that you can work with one image at a time.

  • My Flash is some of my making it invisible bitmap images. Any ideas?

    I created a flash game. Some of my bitmap images that have been copied from images online in Flash are invisible when you test the Flash animation. However, they are normal in trying to edit them in Flash. They have worked before and I don't know what I did to prevent them from working. It is only the images created outside of Flash that do, apparently, although some images from other sources are working normally.

    A bitmap is also being turned into a black box the size of the bitmap image, I don't know why either.

    Any ideas, anyone?

    This happens a bit in several products.

    For example, to copy an image with transparency of Photoshop and paste it into Flash (not more transparency). Several programs have limited the Clipboard feature.

    Although Photoshop shouldn't really have this problem. GIMP can stick an image copied in transparency and stick it in perfectly good Flash.

    The difficulty for me has always been, never copy and paste image data directly. Save the image to your disk, then recorded the import file. This should work much better for you. This avoids the Clipboard entirely.

  • How load and access bitmap images?

    Hey there!

    After a few days of frustration and of searching the Web, I finally understand how to make a sheet of sprite and animate it.  I understand the classes and how to import external actionscript files that contain in my Flash project.  The problem is, I can't understand how to name and load a bitmap from the folder and pass on my functions as arguments.  > _ <

    How load and access an external bitmap in Actionscript 3.0?

    I use a class that I found online here: http://www.bensilvis.com/?p=229

    The problem comes when I try to access my bitmap parts, while he tries to do here: http://www.bensilvis.com/?p=317

    var currentSprite : SpriteSheet = new SpriteSheet (sheet, 20, 20) ;


    It is the only line that confuses me because it uses a variable "sheet", which is a bitmap, and I don't know how to set a name / my external bitmap image as such.

    SpriteSheet(tileSheetBitmap:Bitmap, width:Number = 16, height:Number = 16)
    • tileSheetBitmap: the bitmap of the sprite sheet that we will use
    • width: the width of the tiles in the map
    • height: the height of the tiles in the map

    Thank you!  < 3

    you use the loader class to load a bitmap.  When the loading is complete you can cast content loader as a bitmap for the help of the compiler with more coding.

  • Does anyone has knowledge with the import of bitmap images that display perfectly similar to full screen &amp; small

    I created a file of projection for a cd-rom. In the project file, we have added buttons to display full-screen or return to the screen 800 x 600. I imported our company logo which is only available as a bitmap. In the flash program, I put across the 1200 dpi at reduced size logo. However, I noticed that the logo is horrible when scaled to small. But you click on the button to enlarge to full screen, the logo looks great. Flash seems to understand that big logo real size will be read better in full screen, but cannot manage the bitmap well when you scale to a smaller size. So I did a test where I saved the logo in Photoshop at the small size. It looks very small, but when you expand to full screen, the logo appears blurry. In other words, I don't get the best of 2 worlds. Is it possible to have a bitmap image appear visually crisp at full screen or smallscreen? I tried to save at different resolutions such as 500 dpi, 400 dpi and 300 dpi. 300A almost what I want, but seem sweet when you cut them in full screen.

    Depends on a lot of things. Have you tried the 'use smoothing' option in the import of bitmap window? A logo is also still vector exactly due to similar reasons. If you can recreate it in a vector format you wouldn't have problems.

    Another way to take is to calculate for the highest resolution at which the flash runs (usually 1920 x 1200) (very few people have higher resolution screens, and even 1920 x 1200 is a rare case, 1680 x 900 - more likely) and adapted the logo in Photoshop to this resolution.

    This could also be a bug in the version of Flash you use. Another option is to have 2 images to 800 x 600 and full screen and change them accordingly with ACE (you can detect if the player goes to fullscreen or not with ACE)

    But the most likely reason is that you have a bug in your version of Flash... 1200 dpi also seems too gigantic to purposes not printing, maybe the reason why you encounter the bug.

    Emil Georgiev - Flash and Web design

  • Best method for resizing bitmap images

    I'm looking for a good method resize bitmap images to adapt to the constraints imposed by a container object with the size will change based on the dimensions of the browser window, etc. Basically, it must be able to evolve to adapt.

    I use the following to the resizing of height. «largeImage is a bitmap object.

    ratio = largeImage.height/newheight;
    largeImage.height = newheight;
    largeImage.width = largeImage.width/ratio;

    The problem is, the images look resulting slightly serrated and not really the quality I was hoping.

    Is there a better way to do this in as3?

    Add the following seems to greatly improve the quality:

    largeImage.smoothing = true;

  • Scrolling problem

    I have the scrolling problem in netbeans IDE in my macBook pro early 2015 (retina 13 inches), somewhere that is extremely fast cannot see what is happening and in a place more slowly scrolling and not able to fix by increase or decrease scrolling speed of the trackpad in

    sys.pref-> accessibility.

    Everyone please help.

  • I get an "OLE" instead of a Bitmap image when you drag an image from Firefox to CorelDraw X 4, how do I prevent this?

    I get an "OLE" instead of a Bitmap image when you drag an image from Firefox to CorelDraw X 4, how do I prevent this?

    First, drag the image on the desktop, and drag it to Corel Draw. If your dragging directly from firefox to Corel Draw, only copied link.

Maybe you are looking for