×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    5

    IMPORTANT question, never had any reply ;(

    I am programming a game but when I use getPixels it throuws IllegalArgumentException

    The line is:
    dg.getPixels(BoxPozadi, null, 0, 0, 1, 1, 1, 1, DirectGraphics.TYPE_BYTE_1_GRAY);

    anyone know?

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    393

    RE: IMPORTANT question, never had any reply ;(

    Use TYPE_BYTE_1_GRAY_VERTICAL. The IllegalArgumentException is thrown when the format is not supported on a phone.
    e.g. TYPE_USHORT_4444_ARGB is supported on Nokia 7650 and might not be on others.

    [N]/Forum Nokia
    Cheers,
    Nitin

Posting Permissions

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