Search found 5 matches

by Atmapuri
Thu Jan 02, 2014 4:47 pm
Forum: FMX
Topic: Drawing bitmap on Windows
Replies: 6
Views: 27607

Re: Drawing bitmap on Windows

Hello David, The problem was resolved after I learned that: 1.) The Alpha field in RGB needs to be set to $FF (not transparent). 2.) The structure for the color has reversed storage format, Instead of RGB for VCL (24bit), it is ABGR for Firemonkey. (32 bit) Because I was constructing colors from scr...
by Atmapuri
Fri Dec 06, 2013 8:22 pm
Forum: FMX
Topic: Drawing bitmap on Windows
Replies: 6
Views: 27607

Re: Drawing bitmap on Windows

Dear David, Thank you for the example. However, in the question there is specifically mentioned the Scanline. I cannot use SetPixel, because it is orders of magnitude too slow. Do you always use SetPixel with FireMonkey? That would mean that you have not figured out how to work with Scanline yet eit...
by Atmapuri
Fri Nov 29, 2013 3:05 pm
Forum: FMX
Topic: Drawing bitmap on Windows
Replies: 6
Views: 27607

Re: Drawing bitmap on Windows

Dear Narcis,

Any example would do fine, where you can do:

bitmap.Size(2,2);
bitmap.Map(...,bitData);
...
P := bitData.Scanline[0];
P[0].A := 12;
P[0].R := 25;
P[0].G := 36;
P[0].B := 50;
P[1]...

bitmap.Unmap(...);
tChart.Canvas.StretchDraw(bitmap, tChart.ClientRect);

Thanks!
Atmapuri
by Atmapuri
Wed Nov 27, 2013 11:04 am
Forum: FMX
Topic: Historic Unzoom checked!
Replies: 1
Views: 9031

Historic Unzoom checked!

Hi!

Causes invalid pointer operation when unzooming.

Kind Regards!
Atmapuri
by Atmapuri
Wed Nov 27, 2013 10:47 am
Forum: FMX
Topic: Drawing bitmap on Windows
Replies: 6
Views: 27607

Drawing bitmap on Windows

Hi! I am drawing a bitmap on TeeChart in FireMonkey for Windows: var FBitmap: FMX.Graphics.TBitmap; ... ParentChart.Canvas.StretchDraw(Rf,FBitmap) ... The bitmap gets drawn, but the FBitmap.PixelFormat Property is ignored. The bitmap is drawn in the CMYK color mode it seems. (At least those are the ...