// Use the scaleWidth and scaleHeight as the dimension we pass to the BlockManager.
// If there is no scaling required, the scaleWidth and scaleHeight will be the same as
// captureWidth and captureHeight (ritzalam 05/27/2010)
Dimension screenDim = new Dimension(ssi.scaleWidth, ssi.scaleHeight);
Dimension tileDim = new Dimension(blockWidth, blockHeight);
blockManager = new BlockManager();
blockManager.initialize(screenDim, tileDim, ssi.useSVC2);
sender = new NetworkStreamSender(blockManager, ssi.host, ssi.port, ssi.room, screenDim, tileDim, ssi.httpTunnel, ssi.useSVC2);
}