On Thursday 19 January 2017 22:50:36 fredvs wrote:
> function array_in_out(arrayin: TArFloat): TArFloat;
> begin
> result := arrayin;
> end;
>
Do you change items of "arrayin" later? If so the items of the result array
will be changed too, dynamic array assignment copies the data pointer only.
ht
> On Jan 20, 2017, at 7:20 AM, Graeme Geldenhuys
> wrote:
>
> It is slightly confusing. If you are using an Indexed image, then use
> the Pixels[] property. If you are not using an Indexed image, then use
> the Colors[] property.
Thanks guys,
Here’s the new program based on your example but i
> On Jan 20, 2017, at 8:31 AM, Ryan Joseph wrote:
>
> Thanks guys,
>
> Here’s the new program based on your example but it still just outputs a pure
> black image.
never mind! The max color value is 65535. I thought it was 1.0 or 255. Got it
working now. Thanks again.
Regards,
Ryan
On 2017-01-19 14:59, Ryan Joseph wrote:
> Is there anyway to set a pixel using TFPImageCanvas?
It is slightly confusing. If you are using an Indexed image, then use
the Pixels[] property. If you are not using an Indexed image, then use
the Colors[] property.
Attached is an example program that ge
On Thu, January 19, 2017 1:28 pm, gabor wrote:
> I was hoping that maybe there is an easy answer. But I understand.
> Thanks.
>
The easy answer is just to use the system unit and have no fear...
The main issue with using fpc with C is when you try to use classes or try
to use C++ classes
As obje
On Thu, Jan 19, 2017 at 6:50 PM, fredvs wrote:
> Hello.
>
> With this code, the result of the function does not have same format as the
> array input:
>
> Why ?
>
> type
> TArFloat = array of cfloat;
>
> function array_in_out(arrayin: TArFloat): TArFloat;
> begin
> result := arrayin;
> end;
>
Hello.
With this code, the result of the function does not have same format as the
array input:
Why ?
type
TArFloat = array of cfloat;
function array_in_out(arrayin: TArFloat): TArFloat;
begin
result := arrayin;
end;
Some more explaination.
If in a code I use:
var
thebuffer: TArFloat;
/
On Thu, Jan 19, 2017 at 8:15 PM, gabor wrote:
> problems with initialization/finalization sections).
...
> I know that following types require extra code:
> object, class, sting, dynamic array, try..except.
> What else should I avoid?
I think it is a huge exaggeration to rule out all of that. I t
Hello,
What is the best FPC library able to remove EXIF data from a JPG file?
I would prefer to avoid the usage of external tools like ExifTool.
Thank you in advance for your suggestions.
Sandro Cumerlato
___
fpc-pascal maillist - fpc-pascal@lists.fr
I was hoping that maybe there is an easy answer. But I understand.
Thanks.
Michał.
W dniu 2017-01-19 o 20:28, Jonas Maebe pisze:
It is therefore not possible to give an answer to your question that is
generally valid. Furthermore, the answer could become wrong at any time
because all of that is
On 19/01/17 20:15, gabor wrote:
I would like to write some code that will be static linked with C
application. In addition, I would like to avoid linking system and rtl
units and would use only routines that come with C app and library (I
heard that combining fpc rtl with C application is not a g
Hello!
I would like to write some code that will be static linked with C
application. In addition, I would like to avoid linking system and rtl
units and would use only routines that come with C app and library (I
heard that combining fpc rtl with C application is not a good idea and
there are
On 17.01.2017 19:07, Lars wrote:
If you have a jvm project with lots of code and now want to start using
this code in another regular mode objfpc unix/win32 application...
Exactly this as the point I wanted to express. Even when coding an fpc
application or library for use with jvm, free (and d
On Thu, Jan 19, 2017 at 3:59 PM, Ryan Joseph wrote:
> I used the image canvas before to draw bitmap fonts so I have this code
> working. Is there anyway to set a pixel using TFPImageCanvas?
Use the Colors property, it is fast:
property Colors [x,y:integer] : TFPColor read GetColor write SetColor
I’d like to draw a bitmap pixel by pixel then save to disk but I can’t understand the docs available online. I know there’s a BGRABitmap class with direct pixel access but I wasn’t able to find the unit in my FPC distribution.I used the image canvas before to draw bitmap fonts so I have this code w
15 matches
Mail list logo