Results 1 to 3 of 3

Thread: การ get RGB ของ PNG ไฟล์ใน J2ME MIDP 1.0 ทำอย่างไรครับ

  1. #1
    Anonymous
    Guest


    การ get RGB ของ PNG ไฟล์ใน J2ME MIDP 1.0 ทำอย่างไรครับ

    ช่วยบอกวิธีการ get RGB ของ PNG ไฟล์ใน J2ME MIDP 1.0 ทีครับ ทำต่อไม่ได้แล้วครับ ข้างล่างเป็นการ get PNG ครับ
    ผมไม่สามารถ ดึงค่าสีของ PNG ไฟล์ออกมาได้ครับ
    ใครพอรู่หรือพอมีcode ก็บอกกันด้วยนะครับ
    จักเป็นพระคุณอย่างสูงครับ

    ------------------------------------------------------------
    InputStream inputstream1 = getClass().getResourceAsStream(name1);

    int ch;
    int index = 0;
    int len1 = inputstream1.available();

    data1 = new byte[len1];
    while ((ch = inputstream1.read()) != -1)
    {
    data1[index] = (byte)ch;
    System.out.print(data1[index]+" ");
    index++;
    }
    System.out.println("n"+index+"nn");
    inputstream1.close();

    <font color=white>Ref</font>

  2. #2
    Anonymous
    Guest


    Re: การ get RGB ของ PNG ไฟล์ใน J2ME MIDP 1.0 ทำอย่างไรครับ

    Anyone can help me?

  3. #3
    Senior Member
    Join Date
    Jul 2004
    Location
    Bangkok
    Posts
    187


    Re: การ get RGB ของ PNG ไฟล์ใน J2ME MIDP 1.0 ทำอย่างไรครับ

    ใช่ได้เฉพาะ nokia ใช้ class DirectGraphics

Similar Threads

  1. Replies: 0
    Last Post: 27-03-2009, 12:42 AM
  2. Replies: 4
    Last Post: 16-12-2008, 05:06 PM
  3. Download ไฟล์ใน Rapidshare แบบไม่ต้องรอนาน
    By rocker in forum ทิปหรือเคล็ดลับการคอมพิวเตอร์ต่างๆ
    Replies: 0
    Last Post: 16-07-2008, 12:15 PM
  4. Kicking Butt with MIDP and MSA: Creating Great Mobile Applications
    By BenzaaaEs in forum E-Book, Video หรือบทความทั่วไปด้าน Computer
    Replies: 0
    Last Post: 14-06-2008, 06:15 PM
  5. MIDP Programming with J2ME
    By asylu3 in forum Symbian C++, J2ME, Brew,XHTML
    Replies: 0
    Last Post: 07-04-2004, 07:46 PM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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