Welcome Guest [Log In] [Register]
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:

Username:   Password:
Add Reply
To all highly skilled java programmers!
Topic Started: Jul 8 2010, 08:00 AM (341 Views)
insolence
Member Avatar
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
Offline Profile Quote Post Goto Top
 
insolence
Member Avatar
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
Offline Profile Quote Post Goto Top
 
scisadmin
Member Avatar
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.
Posted Image

"Failure doesn't mean you won't succeed, it means you haven't succeeded yet"
Offline Profile Quote Post Goto Top
 
insolence
Member Avatar
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
Offline Profile Quote Post Goto Top
 
iamYASSER
Member Avatar
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?
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Programming · Next Topic »
Add Reply


Latest posts is now loading...Please wait...
Free Domain Name Service