home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,189 of 2,978   
   Marco van de Voort to ferg200@hotmail.com   
   Re: [Newbie] Drawing a bitmap on screen   
   07 Jun 06 08:12:02   
   
   From: marcov@stack.nl   
      
   On 2006-06-06, ferg200@hotmail.com  wrote:   
   > Could someone please tell me how to place a bitmap on screen?  I can   
   > draw stuff using Graph, but how can I put a bitmap from a file on   
   > screen?  I have literally been searching for hours but I can't find an   
   > answer.   
      
   The only portable way is to draw it bit for bit using graph, or convert the   
   bmp to a picture that putimage can use. There is BMP reading code in the   
   fpimage package.   
      
   > Can I have any resolution I want? 1024x768 for example?  What about   
   > colors, will I be limited to 256?   
      
   Depends on OS. I believe the win32 port is limited to 640x480, the rest not.   
      
   If you use FPC there is some BMP reading code in fcl/fpimage/ but I don't   
   know if there are demoes for that (Lazarus uses it internally iirc)   
      
   > I am using freepascal, will it be different to Borland?   
      
   Afaik the native graph doesn't go higher in Borland. There are substitutes   
   though.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca