×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    80

    Image representation

    When we perform createImage(), the return will be Image

    Image imageCreated = createImage();

    imageCreated is of type Image. I want to know how imageCreated is represented. Is imageCreated a matrix of size width x height where every element of the matrix represent pixel value? if not, how it is represented?

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Image representation

    Quote Originally Posted by fecxelmin View Post
    I want to know how imageCreated is represented. Is imageCreated a matrix of size width x height where every element of the matrix represent pixel value? if not, how it is represented?
    An image is a rectangular grid of pixels. It has a definite height and a definite width counted in pixels. Each pixel is square and has a fixed size on a given display. however different computer monitors may use different sized pixels.

    Each pixel has a color. The color is a 32-bit integer. The first eight bits determine the redness of the pixel, the next eight bits the greenness, the next eight bits the blueness, and the remaining eight bits the transparency of the pixel.

    Each of these values can be interpreted as an unsigned byte between 0 and 255. Within the color higher numbers are brighter. Thus a red of 0 is no red at all while a red of 255 is a very bright red.

    Currently Java only supports two levels of transparency: Completely opaque (255) and completely transparent (0). Values of 1 through 254 are treated as completely transparent.

    I am sure that helps to you..
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. Image to byte[] (without getRGB)
    By lospatzos in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2009-07-28, 17:46
  2. Image Transparency issue
    By tomcruise in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2008-05-31, 15:46
  3. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31
  4. image failed to load
    By killarkai in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2003-07-25, 13:07
  5. image transparency gets lost with DirectUtils.createImage
    By rawpsycho in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2003-05-28, 08:36

Posting Permissions

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