Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 29 Sep 2002
Offline Last Active Mar 09 2015 11:55 PM

Topics I've Started


02 February 2008 - 10:02 PM

. [Edited by - snisarenko on February 5, 2008 5:53:25 PM]


05 December 2006 - 06:42 PM

This is a clone of the mini-game "sumo" from Fusion Frenzy. There are no fancy graphics and no AI, because I had little time to develop it. If you could please try it and tell me if it runs smooth on your computer. Thanks! Screenshot More screenshots Download

[java] GUI - Window Dragging

25 September 2005 - 05:44 PM

How Do you handle or control dragging. I want to create a "Window" that wont be able to be dragged outside of its child window. I checked out WindowListeners but non of them have any sort of drag Event. Is there a class in java that can handle dragging for a "Component" ?


19 August 2005 - 11:43 PM

-- [Edited by - snisarenko on January 28, 2010 9:20:18 PM]

Loading Bitmap Article

19 June 2005 - 09:49 PM

In this article I don't understand one part where the author deals with padding
DWORD diff;
int offset;
LONG height;

//set diff to the actual image size(no padding)
//allocate memory for the image
pixelData=new BYTE[diff];
if(pixelData==NULL) {
    return false;
//bitmap is inverted, so the padding needs to be removed
//and the image reversed
//Here you can start from the back of the file or the front,
//after the header.  The only problem is that some programs
//will pad not only the data, but also the file size to
//be divisible by 4 bytes.
if(height>0) {
    int j==size-3;
    for(int i=0;i<size;i+=3) {
        if((i+1)%padWidth==0) {
//the image is not reversed.  Only the padding needs to be removed.
else {
    do {
    } while(offset<height);

I don't get how this part if((i+1)%padWidth==0) { i+=offset; } is supposed to take care of the padding in the pixel data