×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Jul 2003
    Posts
    63

    Series 40 - image resizeing and drawing black and white only a part of an image

    in MIDP 1.0 and NOKIA UI API

    1)
    I have a image that I want to use first at it's normal size and then at a smaller scale.

    2)
    I'm drawing parts of an image using setclip. I want that some of the clips to be drawn in black and white and the others normal (as in the image).

    Please, help!

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    1) There is a function to rescale images here:
    http://kobjects.org/utils4me/

    2) Just use setColor(0) and fillRect() when you want the background to be black.

    shmoove

  3. #3
    Regular Contributor
    Join Date
    Jul 2003
    Posts
    63
    Thanks.
    I haven't tested the function yet.

    But, about the second question : what I met was :haw can I draw a colored image let's say, for example, the left half of the image as it is, colored, and the right half black and white, not just draw a black rectangle, I ment draw part of a picture black and white.

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    OK. You'll have to grab the pixels with DirectGraphics' getPixels() and manipulate them to create a black and white copy then. I've never tried anything like that...

Posting Permissions

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