Black border on TRectangle when I try to put a rounded corner - firemonkey

I have a TRectangle without the borders. I set sides property all to false and it gets like the picture below.
When I set XRadius and YRadius to 20 the TRectangle gets a rounded corner as I desire, however, it gets a tine black border as you can see in the picture.
I would like to know how to get rid of this tiny black border.

not set all sides to false, but instead set stroke.kind to none

Related

How to fill different color for each section on a square which is divided by a single line?

I'm a newbie for Adobe XD and I was trying to fill different color for each section on a square, where square is divided by a single line. When I'm trying to fill it, it's automatically fills all over the square.
Please use a gradient for multi-color in a box.
See the below pic
You need a gradient that starts with a red color for example, then at the middle position add another red color. Next to it a blue and at the end the blue color again.
To translate this to positions that would be:
red at 0%
red at 50%
blue at 50%
blue at 100%
This will create a gradient with 2 colors, but instead of gradually fading from one to another, you have a harsh jump at the 50% position from red to blue.

ffmpeg set padding with different top and bottom bar background colors

Using this ffmpeg command to set the padding color:
pad="max(iw\,ih):ow:(ow-iw)/2:(oh-ih)/2:black"
but I want different color for top for example green
and for bottom I want to set blue color.
Appreciate the help.
You need two pad filters,
"pad=(iw+max(iw\,ih))/2:(ih+max(iw\,ih))/2:0:0:color=blue,pad=max(iw\,ih):ow:(ow-iw):(oh-ih):color=green"
This will pad with green at the top or left, and blue at bottom or right.

AspectFill - clip only one side

I would like only the bottom part of the image to get clipped, is that possible? Currently, equal portions of the image get clipped at the top and at the bottom.
I tried setting VerticalOptions to Start, but had no success.
The red rectangles represent the screen and the blue rectangles represent the image that needs clipping. The top figure shows the current state and the bottom figure the desired state.

Setting the background to transparent using GIMP

Using GIMP 2, I have an image of a grey chair on a white background, as below:
I now want to set the background to transparent. Therefore, I decided to use GIMP's "Color To Alpha" tool. So, I told it to set all pixels which are white (255, 255, 255) to transparent, as below:
This did set all white pixels to transparent. However, it also set the grey pixels on the chair to be partially transparent, as below:
So when I export this image and place it in front of a background, there is no white box around the chair -- but the background partially shows through the chair.
What am I doing wrong?
First, this question is offtopic here, and should be on https://graphicdesign.stackexchange.com .
Second, it is trivial enough just to answer: the color to alpha plug-in is not there to turn a single color, as seem on the image, to transparency: it is a sophisticated plug-in that will remove one color of your image in a way that, if you lace the new image over a background of the same color the color you removed, you get the original image back.
Thus, in your case, it removed the "whiteness" of your chair, transforming all pixels to different opaque shades of black - so that when placed over white, you get the original image.
To simply remove the white, you have to cick on the Select By Color tool (by default th 5th icon on the toolbox), click on the white background to have it selected, and then just edit->cut. (It won't work if your image layer does not have transparency to start with - if that is the case, prior to edit->cut do Layer->Transparency->Add Alpha Channel).
If you get aliased borders, then, after edit>cut, but prior to dismissing your selection, you can do Select->Border... by 1 or 2px, and then use the color to alpha filter with White on this selection.
For more information on Color to Alpha, I have this other answer its use and comparison with edit-cut here: https://graphicdesign.stackexchange.com/questions/28058/gimp-color-to-alpha-is-not-selectable/28097#28097
Just use a selection to restrict the action of Color to alpha where it matters: backgroundand edge pixels:
Select background with fuzzy select
Select>Grow by one pixel so that the selection ofverlaps the edge pixels
Color>Color to alpha

velocity.js // animating svg fill from transparent to color

It obviously does not work :
Without specyfying the start color, it translates from white to the color specified.
If the start/end colors are specified with hex, same thing
If colors are specified with rgba values, with alpha at 0 for the start color, and alpha at 1 for the end color, there is no transition, it immediately get the end color
If anyone has clues or alternatives on this one (the point is to animate the svg fill color from transparent to color, don't care about velocity), that'd be great
Animate fill with hex values and fill-opacity from 0 to 1 paralelly.

Resources