Recent

Author Topic: Some questions about BGRABitmap ?  (Read 3193 times)

Muhannad.Alrusayni

  • Newbie
  • Posts: 6
Some questions about BGRABitmap ?
« on: March 02, 2015, 05:35:58 pm »
Hi everybody .

I was playing with BGRABitmap Package and it's greate package .
anyway , I'm trying to draw some Arrows but I couldn't do it.
and I'm wandring if there is any doucments cover all the library ?

1 - How to draw Arrow ?
2- are there any doucments cover all the library ? ( I looked at Wiki Free Pascal , but it doesn't cover all the library)
3- Is there a way to convert To RGBA insted of BGRA ?


thanks in advanc .

Regard Muhannad Alrusayni
« Last Edit: March 02, 2015, 05:38:19 pm by Muhannad.Alrusayni »

Muhannad.Alrusayni

  • Newbie
  • Posts: 6
Re: Some questions about BGRABitmap ?
« Reply #1 on: March 05, 2015, 01:27:50 pm »
Any ideas or suggestions ?

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: Some questions about BGRABitmap ?
« Reply #2 on: March 12, 2015, 07:36:00 pm »
Hello,

Arrows have been introducted in version 7.9 and are explained there:
http://forum.lazarus.freepascal.org/index.php/topic,24239.msg159762.html#msg159762

Quote
The arrows are applied to DrawLineAntialias and DrawPolyLineAntialias functions

To define an arrow, use ArrowStartAs... and ArrowEndAs...

Some properties are there to customise the head/tail:
- ArrowStartRepeat is the number of repetition of the arrow head/tail. The default value is 1.
- ArrowStartOffset is the offset of the head/tail relative to the start of the line, one unit being equal to the width of the line. The default value is 0.
- ArrowStartSize is the size of the arrow head, one unit being equal to the width of the line. The default value is PointF(2,2)

ArrowEnd... and ArrowStart... are the same except ArrowEnd is relative to the end of the line
Conscience is the debugger of the mind

Muhannad.Alrusayni

  • Newbie
  • Posts: 6
Re: Some questions about BGRABitmap ?
« Reply #3 on: March 16, 2015, 01:27:59 pm »
Hi , Sorry for late replay  :-[

I thought the forum in indolence mode .

yes I'm working in the version 7.9.3.0 .

thx for that example , was helpful .

would you like to create doucments for your library ? . this will be so helpful .

I'm currently developing a program that make users able to add some messages and lables to videos .. and I'm useing your library , it's really powerful library and it would be great if there is a doucments or demos for every new version or at lesst doucments that covers every things in simple way like in Free Pascal's Wiki . but as I said it would be batter if you update them with every new version .

there is another program that I'm going to develop another program for editing pic useing your lib . so thatnk for your job   :D

both programs going to be under LGPL on sourceforge

for Linux and Win .. and MacOS if you'r going to support MacOS  :D

Note : sorry for my Englsih xD.
« Last Edit: March 16, 2015, 02:48:56 pm by Muhannad.Alrusayni »

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: Some questions about BGRABitmap ?
« Reply #4 on: March 16, 2015, 08:25:19 pm »
Hello, well I am not replying quickly either,

There is already a wiki, but I reckon it is not always up-to-date.
http://wiki.lazarus.freepascal.org/BGRABitmap_tutorial

If you have any question, feel free to ask here.

MacOS is supported as well. However it may be slower.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018