Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Printing scheduler (Read 4898 times)
zodraz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 29
Joined: Jan 14th, 2011
Printing scheduler
Mar 15th, 2011 at 11:50am
Print Post  
Hi another time,

                            I am trying to print the scheduler layout...with a writable map...I am not able to succeed...Is this possible?

Thanks,

Zodraz
  
Back to top
 
IP Logged
 
zodraz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 29
Joined: Jan 14th, 2011
Re: Printing scheduler
Reply #1 - Mar 15th, 2011 at 12:05pm
Print Post  
Hi,

           I've done it!!!Thanks.

Zodraz
  
Back to top
 
IP Logged
 
Russell Domingo
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: May 26th, 2011
Re: Printing scheduler
Reply #2 - May 26th, 2011 at 10:30am
Print Post  
How did you do it?
  
Back to top
YIMAIM  
IP Logged
 
zodraz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 29
Joined: Jan 14th, 2011
Re: Printing scheduler
Reply #3 - Jul 15th, 2011 at 1:28pm
Print Post  
Here it is the code...Sorry for delay I've been in other projects...

  WriteableBitmap bitmap = new WriteableBitmap(_calendari, new TranslateTransform());
           editableImage = new EditableImage(bitmap.PixelWidth, bitmap.PixelHeight);

           for (int y = 0; y < bitmap.PixelHeight; ++y)
           {
               for (int x = 0; x < bitmap.PixelWidth; ++x)
               {

                   int pixel = bitmap.Pixels[bitmap.PixelWidth * y + x];

                   editableImage.SetPixel(x, y,
                               (byte)((pixel >> 16) & 0xFF),
                               (byte)((pixel >> 8) & 0xFF),
                               (byte)(pixel & 0xFF),
                               (byte)((pixel >> 24) & 0xFF)
                               );

               }
           }

where EditableImage is a dll you'll find googling...at first position.

Enyo it!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint