public DaxWallDefViewer(List <List <Bitmap> > wallBitmaps, List <int> blockIds, float zoom, int containerWidth) { Zoom = zoom; ContainerWidth = containerWidth; for (int i = 0; i < wallBitmaps.Count; i++) { var dwb = new DaxWallBlob(wallBitmaps[i], blockIds[i]); wallSets.Add(dwb); maxWallSetWidth = Math.Max(maxWallSetWidth, dwb.blobWidth); maxWallSetHeight = Math.Max(maxWallSetHeight, dwb.blobHeight); } }
void drawWallViews(Graphics surface, DaxWallBlob wallset) { float x = 0; float y = 0; int idx = 0; foreach (var wall in wallset.wallBitmaps) { surface.DrawImage(wall, x, y, wall.Width, wall.Height); idx++; x += wall.Width + imageXGap; if ((idx % 10) == 0) { x = 0; y += wallSetHeightPixels; } } }