Selasa, 03 September 2013

PHP Indonesia - Facebook: gan saya mw tnya nih $gb=imagecreatefrompng("face...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Creating iOS Games: Beginner Course

Marin Todorov teaches you how to create an iPhone game easily and simply using Cocos2d in this $99 online course.
From our sponsors
gan saya mw tnya nih $gb=imagecreatefrompng("face...
Sep 4th 2013, 02:53, by Muhammad Yusuf

Muhammad Yusuf 2:53am Sep 4
gan saya mw tnya nih

$gb=imagecreatefrompng("facebook.png");
echo 'jumlah colors : '.imagecolorstotal($gb);

kenapa hasil nya 0 y??

Cahya Dsn 3:09am Sep 4
may be the 'facebook.png' is a true color images; imagecolortotal will return the number of colors in the specified image's pallete or 0 for true color images

cmiiw ^_^V

Muhammad Yusuf 3:43am Sep 4
trus solusi ny gmn mas
agar jumlah warna dari image tersebut di tampilkan

mohon pencerahan nya mas

Cahya Dsn 3:47am Sep 4
lha itu file 'facebook.png'-nya type-nya true color atau pake color pallete?

Muhammad Yusuf 3:50am Sep 4
True color dong

Muhammad Yusuf 3:53am Sep 4
saya dapat tutorial ny seperti itu mas

Cahya Dsn 3:53am Sep 4
lha ya 'kan udah jelas.. kalo pake true color berarti pake 24 bit a.k.a 16.777.216 possible color.. gak usah diitung lagi

Muhammad Yusuf 3:55am Sep 4
Oy mas
Klw menghitung jumlah warna di dalam suatu image gmn mas??

Cahya Dsn 4:02am Sep 4
IMHO, satu hal.. imagecolorstotal() adalah menghitung jumlah warna yang mungkin berdasarkan data informasi pallete yang disertakan pada header file gambar tersebut; meski mungkin gambarnya cuma ukuran 3x3 pixel; tapi dengan menggunakan pallete berukuran 8-bit; maka fungsi tersebut akan menampilkan 256 (2^8) bukan antara 1 s.d 9 sesuai jumlah pixel-nya...

untuk mengetahui jumlah warna 'yang dipakai' pada suatu gambar, mungkin bisa dengan mengindekkan warna berdasarkan jumlah pixel-nya (looping berdasarkan pixel width x pixel height, jumlahkan dan kelompokkan berdasarkan warna yg sama tiap pixel-nya) dari sini baru bisa ketahuan berapa jumlah 'warna yang dipakai'

cmiiw ^_^V

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar