Exemplo n.º 1
0
        public Page(string name, string subfolder)
        {
            var bitmap = GraphicsUtilities.CreateBitmap(pageWidthInPixels, pageHeightInPixels);

            Bitmap    = bitmap;
            Name      = name;
            Subfolder = subfolder;
        }
Exemplo n.º 2
0
Arquivo: Page.cs Projeto: mtrunt/GtR
        public Page(string name)
        {
            var bitmap = GraphicsUtilities.CreateBitmap(pageWidthInPixels, pageHeightInPixels);

            Bitmap   = bitmap;
            Graphics = Graphics.FromImage(bitmap);
            Name     = name;
        }
Exemplo n.º 3
0
        private Bitmap CreateBitmap(ImageOrientation orientation)
        {
            switch (orientation)
            {
            case ImageOrientation.Landscape:
                return(GraphicsUtilities.CreateBitmap(CardLongSideInPixelsWithBleed, CardShortSideInPixelsWithBleed));

            case ImageOrientation.Portrait:
                return(GraphicsUtilities.CreateBitmap(CardShortSideInPixelsWithBleed, CardLongSideInPixelsWithBleed));
            }
            return(null);
        }