Re: [fpc-pascal]Hex values

2004-04-22 Thread Marco van de Voort
> How do you represent Hex values in FPX, I now I can use #141 for example > using the ASCII value of the Hex characted converted ahead of time, but is > there a way to send the Hex values like 0x70 for example? hex: $45; oct: &088; // 1.9+ only bin: %101010; // 1.9+ only char: #23; or chr

[fpc-pascal]Hex values

2004-04-22 Thread Paul Aviles
How do you represent Hex values in FPX, I now I can use #141 for example using the ASCII value of the Hex characted converted ahead of time, but is there a way to send the Hex values like 0x70 for example? Thanks ___ fpc-pascal maillist - [EMAIL PROT

Re: [fpc-pascal]Easy graphics

2004-04-22 Thread Alan Mead
Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > Yes. You need at least 1.9.2. > The best would even be to download the latest CVS, as it supports > more formats. > Or you can try to download the FCL sources and recompile them with > FPC 1.0.10. I appreciate your help with this. I installed 1.9.

Re: [fpc-pascal]Easy graphics

2004-04-22 Thread Michael Van Canneyt
On Thu, 22 Apr 2004, Alan Mead wrote: > Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > Very easy. > > > > Roughly like this: > > > > uses fpimage,fpcanvas,fpwritepng, fpwritejpg; > > > > [...] > > > > See the fcl/image directory for all needed units. > > Supported are bmp,png,jpg,xpm and P

Re: [fpc-pascal]Easy graphics

2004-04-22 Thread Alan Mead
Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > Very easy. > > Roughly like this: > > uses fpimage,fpcanvas,fpwritepng, fpwritejpg; > > [...] > > See the fcl/image directory for all needed units. > Supported are bmp,png,jpg,xpm and PPM/PBM. > > There is no documentation yet, but I can provide

Re: [fpc-pascal]Easy graphics

2004-04-22 Thread Michael Van Canneyt
On Thu, 22 Apr 2004, Alan Mead wrote: > What is the easiest way to create PNG or JPG images from within a FPC > program? Ideally, in a cross-platform way although I mostly use > Linux. Thanks! Very easy. Roughly like this: uses fpimage,fpcanvas,fpwritepng, fpwritejpg; Var Image : TMemoryI

[fpc-pascal]Unit png example?

2004-04-22 Thread Alan Mead
I just asked about a way to create images. Then I saw the png unit and I got it to link. But now I'm lost trying to translate the libpng C examples to Pascal. Does anyone have an example or two of a program that uses unit png? -Alan __

[fpc-pascal]Easy graphics

2004-04-22 Thread Alan Mead
What is the easiest way to create PNG or JPG images from within a FPC program? Ideally, in a cross-platform way although I mostly use Linux. Thanks! -Alan __ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25ยข http://

Re: [fpc-pascal]Win32: converting lptstr to string

2004-04-22 Thread Marco van de Voort
> > How do I convert a lptstr var (win32) to a string var ? > > lptstr is just a PChar. Use the usual method you use for PChar... > > Y := StrPas( X ); > > Y := String(X); > > Would probably both work in Delphi mode - though StrPas is more universal. strpas will introduce a 255 char limit.

Re: [fpc-pascal]Win32: converting lptstr to string

2004-04-22 Thread Matt Emson
> Hi > > How do I convert a lptstr var (win32) to a string var ? lptstr is just a PChar. Use the usual method you use for PChar... Y := StrPas( X ); Y := String(X); Would probably both work in Delphi mode - though StrPas is more universal. ___

[fpc-pascal]Win32: converting lptstr to string

2004-04-22 Thread Inpromptu
Hi How do I convert a lptstr var (win32) to a string var ? Thanks Inpromptu -- _ Web-based SMS services available at http://www.operamail.com. >From your mailbox to local or overseas cell phones. Powered by Outblaze ___