[Lazarus] Color thief

2015-07-08 Thread aradeonas
Hi, Today I saw Color thief[1] and I was impressed.I like to have something like this in my application so I reviewed the code but I dont know how to implement this in FreePascal or couldn't find anything like this in Pascal that do as good as this. Any one know about a library like this in

[Lazarus] Is there a bug in auto indentation in 1.4 or is it just me?

2015-07-08 Thread Bernd
if I write the following code: procedure foo; begin if true then begin X end else begin X end; end; The x marks the place where it puts my cursor after hitting enter. After the the if then begin it will correctly place me 2 spaces indented relative to the begin, but after

Re: [Lazarus] Color thief

2015-07-08 Thread Michael Van Canneyt
On Wed, 8 Jul 2015, aradeonas wrote: Hi,   Today I saw Color thief and I was impressed.I like to have something like this in my application so I reviewed the code but I dont know how to implement this in FreePascal or couldn't find anything like this in Pascal that do as good as this.   Any

Re: [Lazarus] Is there a bug in auto indentation in 1.4 or is it just me?

2015-07-08 Thread Martin Frb
On 08/07/2015 10:51, Bernd wrote: I cannot find any way to influence this behavior in the editor settings (which are very confusing btw), I cannot even change anything at all there, even if I set everything to 4 spaces instead of 2 it will still use 2 spaces everywhere (and 4 in an else begin

Re: [Lazarus] Color thief

2015-07-08 Thread aradeonas
Thank you. I get exception when try to load from file and I could not debug in FPC source,debugger don't go there: var  i: Integer;  Img: TFPCustomImage;  reader: TFPCustomImageReader; begin  Img := TFPCustomImage.Create(0, 0);  Reader := TFPReaderJPEG.Create; 

Re: [Lazarus] Color thief

2015-07-08 Thread Michael Van Canneyt
On Wed, 8 Jul 2015, aradeonas wrote: Thank you.   I get exception when try to load from file and I could not debug in FPC source,debugger don't go there:   var   i: Integer;   Img: TFPCustomImage;   reader: TFPCustomImageReader; begin   Img := TFPCustomImage.Create(0, 0);   Reader :=

Re: [Lazarus] Color thief

2015-07-08 Thread aradeonas
Project project1 raised exception class 'External: SIGSEGV'. File exists and it is correct. Ara -- http://www.fastmail.com - Email service worth paying for. Try it for free -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Color thief

2015-07-08 Thread aradeonas
Here you are. http://lokeshdhakar.com/projects/color-thief/img/photo1.jpg Ara -- http://www.fastmail.com - The professional email service -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Color thief

2015-07-08 Thread Michael Van Canneyt
On Wed, 8 Jul 2015, Graeme Geldenhuys wrote: On 2015-07-08 22:30, aradeonas wrote: I test the code but app will wait for more than a minute and so on on img.UsePalette := True; and I couldn't get values. It took a while here... just under a minute, but then it started writing out all the

Re: [Lazarus] Color thief

2015-07-08 Thread Graeme Geldenhuys
On 2015-07-08 22:30, aradeonas wrote: I test the code but app will wait for more than a minute and so on on img.UsePalette := True; and I couldn't get values. It took a while here... just under a minute, but then it started writing out all the RGB values. So it works, but it just ain't fast

Re: [Lazarus] Color thief

2015-07-08 Thread aradeonas
My bad! I test the code but app will wait for more than a minute and so on on img.UsePalette := True; and I couldn't get values.I test that image in Lazarus/FPC Trunk 2015/06/27 49452. Regards, Ara -- http://www.fastmail.com - Same, same, but different... --

Re: [Lazarus] Color thief

2015-07-08 Thread Michael Van Canneyt
On Wed, 8 Jul 2015, aradeonas wrote: Project project1 raised exception class 'External: SIGSEGV'.   File exists and it is correct. Can you send me the file ? Michael.-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Color thief

2015-07-08 Thread Michael Van Canneyt
On Wed, 8 Jul 2015, aradeonas wrote: Here you are. http://lokeshdhakar.com/projects/color-thief/img/photo1.jpg Your program contained an error, I should have seen it at once. You used TFPCustomImage. This is an abstract class. You should have used a descendent like TFPMemoryImage instead.

Re: [Lazarus] lazbuild not bıild IDE

2015-07-08 Thread FreeMan
Yes, its in terminal, first output line of lazbuild, not mine parameter, or commandline On 07.07.2015 19:24, Juha Manninen wrote: On Tue, Jul 7, 2015 at 6:53 PM, FreeManfreema...@delphiturkiye.com wrote: in terminal: SetPrimaryConfigPath NewValue=/Users/freeman35/.lazarus -

Re: [Lazarus] lazbuild not bıild IDE

2015-07-08 Thread FreeMan
Yes, you right Sandro this is my commandline in my script lazbuild --quiet --max-process-count=8 --pcp=/Users/$User_Name/.lazarus --build-all --skip-dependencies --build-ide= --ws=$LCL_PLATFORM --cpu=$CPU_TARGET $COMPILERSWITCH I added --pcp 'cos some times change it for test. --quiet is

Re: [Lazarus] lazbuild not bıild IDE

2015-07-08 Thread FreeMan
Thank you, its worked in r49509. On 07.07.2015 19:41, Juha Manninen wrote: Ok, sorry, there was an error indeed. Try with r49509. Should work now. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Docked Form

2015-07-08 Thread Maciej Izak
2015-06-15 14:31 GMT+02:00 Graeme Geldenhuys: How is that going to look under OSX where tabs are very different (read as butt ugly and rubbish) compared to other platforms? You can check this. :) First version with Sparta Basic (docked design form and IDE changes) :D is available at:

Re: [Lazarus] Color thief

2015-07-08 Thread aradeonas
So in my case BGRABitmap is a better choice,because I could choose color count. Thank you Michael and Graeme as always. Regards, Ara -- http://www.fastmail.com - Faster than the air-speed velocity of an unladen european swallow --

[Lazarus] File sync system approach

2015-07-08 Thread aradeonas
[Cross posted on forum so if you want answer there : http://forum.lazarus.freepascal.org/index.php/topic,29007.0.html] Hi, For one of my projects I want to send and receive files between server and client and for years I saw demos in Indy,Synapse ... but I wonder if any one done it in real

Re: [Lazarus] Color thief

2015-07-08 Thread aradeonas
For now I used lovely BGRABitmap like this,thanks to its author circular. uses BGRABitmap, BGRABitmapTypes, BGRAColorQuantization; var  bmp:TBGRABitmap;  quant: TBGRAColorQuantizer;  i: Integer; begin bmp:=TBGRABitmap.Create('E:\photo1.jpg');  quant := TBGRAColorQuantizer.Create(bmp,