×

Discussion Board

Results 1 to 5 of 5

Thread: image resize

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    11

    image resize

    Dear users I hope someone can please help me.
    i have made a chessboard reperentation on the screen, i can put pictures of chess pieces on it but the pictures are to big, is it possible to resize them, so that they fit the allacoted square

  2. #2
    Registered User
    Join Date
    Jul 2004
    Posts
    34
    Hi

    The MIDP1.0 and MIDP2.0 specifications do not have any methods for resizing bitmaps. Anyway you will properly get the best result by doing the resizing in a proper image editor.

    BR
    Einheriar

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    11
    thank you einheriar

    if that is the case, I have one more question, if that’s not too much trouble. I would like to make to program compatible such that it can be played on any device would this mean I have resize the image to the specific size for each display?

  4. #4
    Registered User
    Join Date
    Jul 2004
    Posts
    34
    Yes you will have to modify the images for the given screen size.

    If you want your game to be optimal then I would say you will have to use bitmap graphics(images), and that will mean that you will need different graphics for different screen sizes.

    If you on the other side can live with that your chessboard and chess pieces is drawn using simple line drawing and fill methods, then you can ask for the handset screen size and based on that modify the graphics.

    BR
    Einheriar

  5. #5
    Registered User
    Join Date
    Jul 2004
    Posts
    11
    Einheria, thank you, thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×