Laman

Selasa, 16 November 2010

membuat gambar dari piixel yang telah ditentukan

Pada tutorial kali ini adalah tentang  citra/image/gambar,lebih detailnya yaitu membuat suatu image dari data pixel yang telah ditentukan, dimana data pixel tersebut merupakan data  integer (angaka 1-255)  dalam format excel. Sedangkan untuk pemisahan pixel RED,GREE dan BLU dipisahkan dalam bentuk sheet, perlu diketahui bahwasanya dalam citra digital warna gambar dibangun dari tiga parameter warna yaitu warna merah warna hijau dan warna kuning, dari kombinasi ketiga warna ini dapat dibentuk bermacam macam warna seperti pada citra digital, nilai yang digunakan dalam konbinasi warna adalah nilai dengan range antara 0-255, misalnya saja untuk membuat warna hitam kombiasi warnanya adalah (0,0,0) yang mempunyai arti warna hitam dibentuk dari nilai 0 warna merah nilai 0 warna hijau, sedangkan untuk warna hijau pupus dibentuk dengan nilai (102,255,0) yang artinya bahwa warna hijau pupus dibentuk oleh 102 warna merah 255 warna hijau dan 0 warna biru, berikut ini adalah preview dari aplikasi yang akan dibuat

Gambar 1. Preview desain aplikasi

Gambar 2. Priview data pixel dalam excel

Jika program di jalankan tampilannya akan seperti gambar 1 diatas. Berikut ini penjelasan tentang source codenya. Disini hanya akan di jelaskan source code inti dari program.
  
private void createImage()
{
    for (int i = 0; i < kolom; i++)
    {       
                for (int j = 0; j < baris; j++)
      {                             Color.FromArgb(dataPixel[j,i],dataPixelGreen[j,i],dataPixelBlue[j,i]));
      }
     }

    pictureBox1.Image = gambar;
 }


Private void createImage  adalah nama fungsi untuk mencetak pixel-pixel dari file excel. Sedangkan struktur for bersarang berfungsi untuk meload semua pixel yang telah diambil dari file excel dan di simpan ke masing-masing variabel. dataPixel adalah variabel yang menyimpan data pixel warna merah, dataPixelGreen adalah variabel yang menyimpan data pixel warna hijau, dan dataPixelBlue adalah variabel yang menyimpan data pixel warna biru

Code
 Color.FromArgb(dataPixel[j,i],dataPixelGreen[j,i],dataPixelBlue[j,i])); 


merupakan sintak untuk membangun image dari data-data pixel  yang telah di load sebelumnya

Download file excel di sini
Download binary file disini
Contact us on informasi@csharp-indonesia.com
Untuk mendapatkan full codenya…. Silahkan tinggalkan email anda di kotak komentar, full projectnya akan disend ke email tersebut

64 komentar:

  1. mas, kalau boleh minta full project nya yak (mis_bec@yahoo.com)

    BalasHapus
  2. iya... boleh.... yang project tentang mendeteksi tombol close sudah saya kirim ke email mis_bec@yahoo.com

    sedangkan untuk project ini, filenya saya lupa menaruhnya, tunggu beberapa hari lagi ya... biar saya buati dari awal... tapi aku lagi KKN. jadi agak sabar.... :-D

    BalasHapus
  3. mas, saya ada tugas kuliah, diminta membuat program yang nampilin gambar di picture box saat kita klik(memilih) di radiobox, yg kita sudah isi dengan directory gambarnya.. gmn ya caranya?? bisa tolong dibantu??

    email saya ketjellengingeng@yahoo.com

    thx b4

    BalasHapus
  4. project sudah saya send ke ketjellengingeng@yahoo.com silahkan di cek...
    terimakasih

    BalasHapus
  5. hai,, mas kalo boleh saya ingin minta projectnya ke ginadelonge.zidane6@gmail.com
    makasih banyak sebelumnya :)

    BalasHapus
  6. full project sudah di kirim ke ginadelonge.zidane6@gmail.com. Silahkan cek inbox saudara

    sebelumnya kami minta maaf atas ketelambatan respon jawaban kami, karena system internal lagi down.

    terimakasih

    BalasHapus
  7. tolong kirim full projectnya dong..

    dingo.xiii66@gmail.com

    kalo project untuk mengubah citra ke dalam bentuk matrix ada ga??
    kalo ada tolong d kirim juga ya,,

    trima kasi sebelumnya..

    BalasHapus
  8. full project sudah disent ke alamat email. dingo.xiii66@gmail.com silahkan cek inboxnya ya.../

    terimakasih, semoga bisa bermanfaat dan bisa membantu

    BalasHapus
  9. tolong dikirimkan ke aisajuzt@gmail.com
    trima kasih:D

    BalasHapus
  10. full project sudah di sent ke aisajuzt@gmail.com silahkan cek inbox email aisajuzt@gmail.com terimakasih .... N semoga bisa bermanfaat

    BalasHapus
  11. Fandy_setyo_utomo21 Desember 2011 05.47

    tolong dikirimkan ke fandy_setyo_utomo@yahoo.com

    Thanks ya :-)

    BalasHapus
  12. Semangat-Belajar C#25 Desember 2011 07.08

    maaf ya terlambat respon. hehehe
    untuk full project sudah di sent ke email fandy_setyo_utomo@yahoo.com silahkan cek inbox nya ya... thank udah mampir....

    BalasHapus
  13. tolong send ke email saya mas,,,
    jmhutabarat@gmail.com

    thanks..

    BalasHapus
  14. maaf atas keterlambatan dalam mereplay, full project sudah di sent ke jmhutabarat@gmail.com silahkan cek inboxnya
    terimakasih

    BalasHapus
  15. tolong send ke email saya mas,,, doichwana2@gmail.com...
    thanks.....

    BalasHapus
  16. tolong send ke email saya mas,,, mait_ern@ymail.com
    thanks.....

    BalasHapus
  17. Full project sudah di sent ke email. mait_ern@ymail.com
    silahkan cek inbox email tersebut.
    terimakasih, semoga bisa membantu

    BalasHapus
  18. full project sudah di sent ke email doichwana2@gmail.com
    silahkan chek inbox email saudara
    terimakasih
    semoga bisa bermanfaat.

    BalasHapus
  19. Torkisnasution24 Mei 2012 08.00

    torkisnasution@stmik-amik-riau.ac.id

    BalasHapus
  20. full project sudah di sent ke email torkisnasution@stmik-amik-riau.ac.id. silahkan cek inbox saudara, semoga bisa bermanfaat dan berguna. atau langsung silahkan download dari link dibawah ini

    mediafire : http://adf.ly/8xG4K
    ziddu : http://adf.ly/8xGEU
    4shared : http://adf.ly/8xGHw

    BalasHapus
  21. mas minta full project y

    algaust@gmail.com

    Trims

    BalasHapus
  22. BelajarCsharp18 Juni 2012 16.03

    JIka link download rusak. silahkan tinggalkan email di kotak komentar. full project akan disent via email.

    BalasHapus
  23. BelajarCsharp18 Juni 2012 16.03

    full project sudah disent ke email algaust@gmail.com. silahkan cek inbox email. semoga bisa membantu dan bermanfaat

    BalasHapus
  24. BelajarCsharp18 Juni 2012 16.03

    full project sudah disent ke email torkisnasution@stmik-amik-riau.ac.id. silahkan cek inbox email. terimakasih. semoga bisa membantu dan bermanfaat

    BalasHapus
  25. minta full project na ke tahta_bryney@yahoo.co.id

    thankyu mas

    BalasHapus
  26. BelajarCsharp22 Juni 2012 10.59

    full project sudah di kirim ke tahta_bryney@yahoo.co.id silahkan cek inbox email. terimakasih.
    semoga bisa membantu dan bermanfaat

    BalasHapus
  27. BelajarCsharp22 Juni 2012 11.00

    untuk download full project silahkan download melalui link berikut ini
    semoga bisa bermanfaat dan berguna
    mediafire : http://www.mediafire.com/?3tjydi6bpe6mys2
    4shared : http://www.4shared.com/rar/3khiOWGZ/wwwcsharp-indonesiacom_CreateI.html

    BalasHapus
  28. mas, saya juga minta dile fullnya mas..
    kirim ke email ini cyberhagz@gmail.com

    BalasHapus
  29. link downloadx udah ga ada :(

    BalasHapus
  30. aku mau indahputri040192@gmail.com

    BalasHapus
  31. indahputri040192@gmail.com

    BalasHapus
  32. Mas saya pengunjung setia web ini,,saya sering memanfaatkan web ini sebagai referensi saya,mohon link full project sebagai sarana blajarnya mas,,kirim ke iindigocarmine@gmail.com

    BalasHapus
  33. minta projectnya full ke kokosip07@yahoo.co.id atau kokosip77@gmail.com
    pilih salah satu aja,. terimakasih banyak....

    BalasHapus
  34. mediafire : http://www.mediafire.com/?3tjy...
    4shared : http://www.4shared.com/rar/3kh...

    BalasHapus
  35. silahkan download disini

    mediafire : http://www.mediafire.com/?3tjy...
    4shared : http://www.4shared.com/rar/3kh...

    BalasHapus
  36. Ka, boleh di re-upload file excel dan binary file nya? atau saya minta kirim via e-mail boleh? email saya: cucueinstein.mfa@gmail.com

    BalasHapus
  37. untuk programnya
    mediafire : http://adf.ly/fs2FI
    4shared : http://adf.ly/fs2Wq
    ziddu : http://adf.ly/fs2fQ

    sedangkan untuk file excelnya
    mediafire: http://adf.ly/fs41h
    ziddu: http://adf.ly/fs48X
    4shared : http://adf.ly/fs4Du

    semoga bisa membantu dan bermanfaat

    BalasHapus
  38. untuk programnya
    mediafire : http://adf.ly/fs2FI
    4shared : http://adf.ly/fs2Wq
    ziddu : http://adf.ly/fs2fQ

    sedangkan untuk file excelnya
    mediafire: http://adf.ly/fs41h
    ziddu: http://adf.ly/fs48X
    4shared : http://adf.ly/fs4Du

    BalasHapus
  39. silahkan download untuk programnya
    mediafire : http://adf.ly/fs2FI
    4shared :http://adf.ly/fs2Wq
    ziddu : http://adf.ly/fs2fQ

    sedangkan untuk file excelnya
    mediafire: http://adf.ly/fs41h
    ziddu: http://adf.ly/fs48X
    4shared : http://adf.ly/fs4Du

    BalasHapus
  40. untuk programnya
    mediafire : http://adf.ly/fs2FI
    4shared : http://adf.ly/fs2Wq
    ziddu : http://adf.ly/fs2fQ

    sedangkan untuk file excelnya
    mediafire: http://adf.ly/fs41h
    ziddu: http://adf.ly/fs48X
    4shared : http://adf.ly/fs4Du

    BalasHapus
  41. untuk programnya silahkan di download disini
    mediafire : http://adf.ly/fs2FI
    4shared : http://adf.ly/fs2Wq
    ziddu : http://adf.ly/fs2fQ

    sedangkan untuk file excelnya
    mediafire: http://adf.ly/fs41h
    ziddu: http://adf.ly/fs48X
    4shared : http://adf.ly/fs4Du

    BalasHapus
  42. Xhilaration's white Plastic Aviators are certainly super hot- the clear plastic combined with white frames is sure to capture some attention. Wear them with a fairly low-key outfit (think a plain tank and cutoffs); after all, donning ultra-hip sunglasses with a hipster-esque ensemble doesn't RB3484 make you ironic, just overstyled.If you pick up Xhilaration's Plastic Vintage Square Sunglasses, don't be surprised if people start calling you Ashley or Mary-kate. The oversized look has been hot for a few years now and shows no signs of slowing down, so ray ban aviator sunglasses adding some vintage-looking hardware ups the ante without straying too far from the original idea. These glasses will go with pretty much anything, sunglasses ray ban so don't worry too much abuot matching; though they have a red tint, it's subtle enough that you won't clash.
    On Monday, Google ray ban outlet Glass announced a new partnership that will bring even more style options to the high-tech specs.Developers plan to work along with The Luxottica ray ban eyeglasses frames Group, the eyewear manufacturer behind well-known brands like Oliver Peoples, Prada, Vogue-Eyewear, and Versace. For Google Glass Explorers and future owners, the new Ray Ban Best Sellers options will include both Oakley and Ray-Ban frames.The company also owns several popular retailers such as LensCrafters and Sunglass Hut, which CNN Money polarized ray bans on sale notes will allow Google to display the fancy frames in stores. This also isn't Luxottica's first foray into the wearable tech business. Oakley's fake ray bans wayfarer Thump sunglasses, for instance,

    BalasHapus
  43. In a well-rounded program, there were twenty-plus workshop/ seminars, including the Featured Business Owners Luncheon with NYC commissioner (dept of business services) Robert Walsh, and fitflip the Featured Keynote presentation “The 3 Keys to Building Your Million Dollar Business,” presented by Bill Walsh.While some exhibitors expressed initial reservations that attendees might be pulled away from the floor to attend the seminars, they later said that that never happened; “traffic and engagement has been really great,” Bray fitflops sale at BidSynch told me. “We didn’t know what to expect at this event. It's our first time exhibiting here, but I’m very pleased thus far,” he said, echoing at least ten others that I questioned about it. In fact, some seemed almost giddy with delight.
    Von Ruden's objective was fitflops twofold: make products the stars of the show and increase brand presence on the show floor.It grabbed visitors attention, who then came and checked out their product line. This principle applies in other fitflop clogs ways, too. Sometimes it’s not about which part of the room you are in, but how much space you have in it. Houghton used a custom exhibit design, making their small 10’x20’ exhibit refreshing and memorable through the use of bright colors and bright flooring. It looked modern and exciting, despite the small size.Pretty booths are a dime a dozen. Everywhere you look there is a pretty booth at your typical tradeshow. But what about memorable booths? fitflop There are sometimes only one or two of them at any given trade show, but they are memorable because they are special. Evan Williams created a memorable and creative trade show booth. The bourbon whiskey manufacturer wanted an exhibit that showcased their product and brand. They created a bourbon barrel fitflops clearance replica with the use of high-quality printed graphics gave the barrel the realistic wooden look. Visitors loved it and remembered the company.While gimmicks can work for the right company in the right space, sometimes you want to keep the focus on the product itself, and not the booth.

    BalasHapus
  44. Today, Electric Daisy is a weeklong event that includes celebrity DJ parties at resorts such as the Wynn Las Vegas and a two-day conference on the dance music business at the Cosmopolitan of Las Vegas, owned by the Blackstone Group. “Now they put us on their marquees,” Rotella says of the casinos.A number of Ray Ban Wayfarer blue chip investors and advertisers are backing the Rock in Rio festival, which held its first event in Brazil 30 years ago. SFX Entertainment, which co-owns the festival globally, is staging the $75 million event alongside local partners Cirque du Soleil and Ron Burkle, the billionaire Los Angeles investor. Rock in Rio has sold almost $15 million in sponsorships Oakley Eyeglasses to 63 companies including Mercedes-Benz, Corona beer, and Chilli Beans sunglasses.
    "He said, 'I needle you guys out of affection,'" Wallsten said. "I said, 'I understand that, but I don't want you to treat me any differently because of this."'Wallsten said the president said he would not treat him differently, so Wallsten encouraged him to "needle away.""He said, 'I Cheap Oakley Sunglasses will. Next time I'll just use a different needle,'" Wallsten said.Wallsten said he thought that was a pretty good line. And his only complaint is that the president didn't answer his question at the news conference.Wallsten, who is also author of a book coming out next month titled "One Party Country: The Republican Plan for Dominance in the 21st Ray-Ban Sunglasses Century," had asked about White House credibility now in the aftermath of top aide Karl Rove having been cleared in the CIA leak investigation. But Mr. Bush said he wouldn't comment with another top White House aide still facing prosecution in the case. Sunglasses are the must-have accessory for summer. But with so many shapes and styles to choose Oakley Outlet from, it's sometimes hard to determine what's right for you. Never fear, "Early Show" Style Contributor Katrina Szish has the perfect sunglasses for everyone. Szish says it is important to first determine your face shape to steer yourself towards a trend that works for you. NEW YORK -- Before you plunk down $500 for a pair of prescription eyeglasses, oakley polarized you might consider getting them online.
    “People are starting to look at sunglasses differently, as a more premium accessory,” says Hansen, whose stores offer visitors complimentary drinks and chocolates while they shop.That’s why it’s important to find a pair that suits your face shape. The size of your sunglasses should be proportional to your face size. It’s important to Ray-Ban look for frames that complement a face by softening or drawing attention away from its more prominent features. Lozac’h, for example, needed a frame that would widen his long face. Don’t look for larger frames if you have a small face and vice versa. Oval-shaped faces are symmetrical, so most styles will work. These lucky few can experiment with oakley batwolf different shapes, styles and colors.
    "UV protection is very, very important. It's like you wouldn't go to the beach without putting sunblock on your body," said Dr.

    BalasHapus
  45. Today, Electric Daisy is a weeklong event that includes celebrity DJ parties at resorts such as the Wynn Las Vegas and a two-day conference on the dance music business at the Cosmopolitan of Las Vegas, owned by the Blackstone Group. “Now they put us on their marquees,” Rotella says of the casinos.A number of Ray Ban Wayfarer blue chip investors and advertisers are backing the Rock in Rio festival, which held its first event in Brazil 30 years ago. SFX Entertainment, which co-owns the festival globally, is staging the $75 million event alongside local partners Cirque du Soleil and Ron Burkle, the billionaire Los Angeles investor. Rock in Rio has sold almost $15 million in sponsorships Oakley Eyeglasses to 63 companies including Mercedes-Benz, Corona beer, and Chilli Beans sunglasses.
    "He said, 'I needle you guys out of affection,'" Wallsten said. "I said, 'I understand that, but I don't want you to treat me any differently because of this."'Wallsten said the president said he would not treat him differently, so Wallsten encouraged him to "needle away.""He said, 'I Cheap Oakley Sunglasses will. Next time I'll just use a different needle,'" Wallsten said.Wallsten said he thought that was a pretty good line. And his only complaint is that the president didn't answer his question at the news conference.Wallsten, who is also author of a book coming out next month titled "One Party Country: The Republican Plan for Dominance in the 21st Ray-Ban Sunglasses Century," had asked about White House credibility now in the aftermath of top aide Karl Rove having been cleared in the CIA leak investigation. But Mr. Bush said he wouldn't comment with another top White House aide still facing prosecution in the case. Sunglasses are the must-have accessory for summer. But with so many shapes and styles to choose Oakley Outlet from, it's sometimes hard to determine what's right for you. Never fear, "Early Show" Style Contributor Katrina Szish has the perfect sunglasses for everyone. Szish says it is important to first determine your face shape to steer yourself towards a trend that works for you. NEW YORK -- Before you plunk down $500 for a pair of prescription eyeglasses, oakley polarized you might consider getting them online.
    “People are starting to look at sunglasses differently, as a more premium accessory,” says Hansen, whose stores offer visitors complimentary drinks and chocolates while they shop.That’s why it’s important to find a pair that suits your face shape. The size of your sunglasses should be proportional to your face size. It’s important to Ray-Ban look for frames that complement a face by softening or drawing attention away from its more prominent features. Lozac’h, for example, needed a frame that would widen his long face. Don’t look for larger frames if you have a small face and vice versa. Oval-shaped faces are symmetrical, so most styles will work. These lucky few can experiment with oakley batwolf different shapes, styles and colors.
    "UV protection is very, very important. It's like you wouldn't go to the beach without putting sunblock on your body," said Dr.

    BalasHapus
  46. Bold, classic and stunningly captivating, a pair of Ray-Ban Aviator sunglasses is a charmer. They add a dash of chic to the wearer’s look. Whether it’s a casual outing or a formal ray ban outlet event, donning a pair of these sassy sunnies can instantly draw attention towards you. Meant to perfectly complement both casual as well as sophisticated tailored outfits; they are the perfect match to accentuate your class, glamour and exuberant taste.Though the classic black Ray-Ban Aviator sunglasses have always been a favorite amongst all the fashion followers, the current fad is to pep up your style quotient with a pair of Ray-Ban Aviator sunglasses with flash lenses. Super stylish, flamboyant and absolutely glamorous, they are a hot favourite among celebrities and fashion icons ray ban wayfarer sale alike.
    On the other hand, Wayfarers might not suit every face shape. These shades are more suitable for a person with a long or rectangular face. Today, one can also choose from Wayfarers in various colours too.The main purpose of sunglasses is to protect your eyes from the sun. And the protection comes entirely from the lenses that are used. One ray ban sunglasses must know that there are different types of lenses available with Ray-Bans and one must select them according to the need.Standard lenses: Initially made for military use, the iconic G-15 and B-15 lenses offer optimal levels of clarity, comfort and protection.Gradient: Keeping up with the latest trends, gradient lenses come in a wide range of exciting colors. So, if vintage colours cheap ray bans offer limited choice, one can go for colourful gradient lenses.
    Obviously, for Ray-Ban models with very thin temple "arms", like Aviators, no logo is present.Look for the model number inside the “arms” of the glasses. Look at the inside of the "arms" of the glasses that rest on your ears. If you have Wayfarers or Clubmasters, you should see white text ray bans cheap inside the arms. On the left arm, you'll see your glasses' serial and manufacturing numbers. On the right arm, you should see the Ray-Ban logo, "Made in Italy", and a stylized "CE" (which signifies that the glasses are certified to be sold in Europe). If this text is missing, smudged, or poorly-printed, your glasses are almost certainly fakes.
    The Ray-Ban logo ray ban glasses will be etched on both the lenses. On the right lens will be the Ray-Bay logo, while on the left lens, right below the hinges will be the initials ‘RB’.If the sunglasses have nose pads, there will be the initials ‘RB’ engraved right at the centre of the metal piece.And there are a few other points which you should keep in ray ban clubmaster mind, as far as original Ray-Ban sunglasses are concerned.Pre-2000 models of Ray-Ban sunglasses will have the initials ‘BL’ instead of ‘RB’ on the left lens.

    BalasHapus
  47. Declan Lonergan, Oakley’s eyewear manager, tells SI.com the focus for the Quarter Jacket was really engineering a smaller frame “with our core focus on impact protection.”“We want kids to be able to wear what the pros and their heroes are wearing,” he says.If all goes well, maybe Oakley will next roll out the 1/8th line designed for toddlers. It’s all about the kids anyway.Coach purses that make ladies want them. Perhaps it is the fashion or could it be the quality of stitching or maybe just the softness of the leather utilized to make the bag. There are so many different styles and they arrive in so many different sizes.Its definitely stunning to uncover the number of cheap oakleys individuals who have these kinds of pocket publications and add-ons versus other brand title pocket guide designers. I have a couple of myself and theyre fantastic purses I may include.Two issues truly are for sure is that the low cost coach handbags have always been extremely well-known and classic. These bags will final for a extremely lengthy time. And there is no penury for you to distrust the eminence of these bags whilst the trait is extremely great.
    Second-quarter sales at the company founded by billionaire Leonardo Del Vecchio rose 19 percent to 2.46 billion euros. Luxottica cited “high demand” for eyewear collections, particularly in China, Southeast Asia, Brazil and oakley outlet Mexico.“We look at the second half with confidence,” co-chief executive officers Adil Mehboob-Khan and Massimo Vian said in a statement. Luxottica confirmed its full-year forecasts for profitability to grow at twice the pace of sales.“The results of the first seven months of 2015, including July, came in strong and benefited from a good sun season,” the two co-CEOs said in the statement.
    The long term deal, first announced in November 2013, was brought cheap oakley sunglasses to a head at the Spanish F1 Grand Prix in Barcelona with the reveal of the Scuderia Ferrari Carbon Blade.Oakley’s collection combines eyewear with engineering as part of the Ferrari Motorsport Division’s biggest global partnership to date.The performance model features an ultra lightweight carbon fibre frame with titanium forged hinges. According to Oakley’s design engineer, Ryan Calilung, the biggest inspiration can be seen in the materials used.“Carbon fibre has been used before in eyewear, but never in this way. Rather than shaping pieces from flat rigid plates, we moulded the carbon layers into a flexible frame structure, creating a highly engineered solution.”
    What are the main trends you see in sunglasses for the next season? We see more and more round frames now, also in the mass market, while square or deep rectangular frames are the standard. Shiny lenses are still very fashionable in many markets, but lose appeal in the trend-leading oakleys cheap ones like Italy already. Also, many brands launch new generations of their halo sports performance sunglasses this year.What innovations can retailers expect on the sunglasses market? Technological and / or style-wise?
    Jim started out in 1975 by making and selling motocross and BMX grips.

    BalasHapus