| Welcome to Scisforums. We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| To all highly skilled java programmers! | |
|---|---|
| Tweet Topic Started: Jul 8 2010, 08:00 AM (341 Views) | |
| insolence | Jul 8 2010, 08:00 AM Post #1 |
![]()
Dual Core
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
alam nio po ba kung panu mag split ng single image to multiple image??? |
|
I Played RF online and Became on of the TOP players Then I got banned permanently cause of the DDM SK bug I Played RF Olympic and Owned the Highlevels Then I got banned for Camping Once Yet the CW urge is still coming back to me | |
![]() |
|
| insolence | Jul 8 2010, 10:38 PM Post #2 |
![]()
Dual Core
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
initially po 1 whole image po xa then I want to split it into multiple parts ^^ |
|
I Played RF online and Became on of the TOP players Then I got banned permanently cause of the DDM SK bug I Played RF Olympic and Owned the Highlevels Then I got banned for Camping Once Yet the CW urge is still coming back to me | |
![]() |
|
| scisadmin | Jul 8 2010, 10:53 PM Post #3 |
![]()
Administrator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
hmmm? d ako sure.. pero try this code... Buffered Image ata ung ginagamit dun.. d ko na maxadong maalala eh.. hehe BufferedImage pic = //ito ung picture mismo na hahatiin int columns = //kung ilang columns. int rows = //kung ilang rows. int weed = img.getWidth()/columns; int hayt = img.getHeight()/rows; int num = 0; BufferedImage pics[] = new BufferedImage[weed*hayt]; for(int y = 0; y < rows; y++) { for(int x = 0; x < columns; x++) { pics[num] = new BufferedImage(weed, hayt, pic.getType()); Graphics2D g = pics[num].createGraphics(); g.drawImage(pic, 0, 0, weed, hayt, weed*x, hayt*y, weed*x+weed, hayt*y+hayt, null); g.dispose(); num++; } } //pwede mo na magamit si pics... access mo ito as array. Edited by scisadmin, Jul 8 2010, 10:54 PM.
|
![]() "Failure doesn't mean you won't succeed, it means you haven't succeeded yet" | |
![]() |
|
| insolence | Jul 8 2010, 10:58 PM Post #4 |
![]()
Dual Core
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
tnx po try ko po tong codes nio... sabi na eh... ikaw lng tlga ang makakasagot hehe |
|
I Played RF online and Became on of the TOP players Then I got banned permanently cause of the DDM SK bug I Played RF Olympic and Owned the Highlevels Then I got banned for Camping Once Yet the CW urge is still coming back to me | |
![]() |
|
| iamYASSER | Jul 9 2010, 07:44 PM Post #5 |
|
Pentium 1
![]() ![]() ![]()
|
Helloooo, do you have any idea kung bakit ayaw mag-appear nung form na niloload ko? here's the code private void contactDetailsToolStripMenuItem_Click(object sender, EventArgs e) { frmDetails details = new frmDetails(); details.Show(); } i tried showDialog() method pero ayaw din. Can anybody help me with this? |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Programming · Next Topic » |






![]](http://z3.ifrm.com/static/1/pip_r.png)





3:01 AM Jul 12