Questions tagged [tbitmap]
50 questions
2
votes
1 answer
Strange Delphi Android image assign / image garbled issue
I have some code that works fine in iOs, but which results in completely messed up images when on Android. I have found a partial workaround (not call some code), but it hints something is terrible wrong:
// some bitmap object buffer for mainthread…

Tom
- 3,587
- 9
- 69
- 124
2
votes
3 answers
Delphi XE7 Firemonkey - Creating a TBitmap form file throws EJNIException java.lang.OutOfMemoryError
Community,
my problem is the following:
I have written a XE7 FMX application for my Kindle Fire where I want to work with TBitmaps.
The problem is, I'm unable to create a TBitmap from the storage of my device.
If I run the application as a Win32-app…

Adam
- 21
- 1
- 2
2
votes
0 answers
Trying to write TBitmaps to AVI file and getting only black frames (all zero data)
I have a Delphi application that reads JPEG frames from a file and writes them to an AVI file. Each JPEG frame is decoded to a TBitmap object and then written to an output AVI file using the services provided by the Windows API DLL for AVI…

Robert Oschler
- 14,153
- 18
- 94
- 227
1
vote
2 answers
How do I export the TChart to the bitmap?
I'm using TeeChart Pro v7.06 of Steema Software and Delphi 6. In my project there are TChart (whose BottomAxis.Automatic = False) and TChartScrollBar (to scroll). In TChart there are several series that don't fit in the width of TChart, so I use…

tikskit
- 339
- 5
- 14
1
vote
2 answers
How to check if the PNG image loaded into FMX.TBitmap has an alpha channel?
I'm loading PNG images into FMX.Type.TBitmap in Delphi-XE2 Update3 FireMonkey HD application. How do I check if loaded PNG image has an alpha channel or not?
Currently if I load an image with an alpha channel it has alpha info in…

Kromster
- 7,181
- 7
- 63
- 111
1
vote
1 answer
Easy to use JPEG to Bitmap converter for Delphi 6 that is efficient with memory usage?
Is there an easy to use JPEG converter (source code) for Delphi 6 that will convert a JPEG frame in a memory buffer to a DirectShow compatible bitmap quickly and without constant memory re-allocation? I'm trying to avoid the default JPEG unit in…

Robert Oschler
- 14,153
- 18
- 94
- 227
1
vote
1 answer
Should I unlock TBitmap canvas after locking it?
I want to draw on a local TBitmap and return it. Because I am outside the main thread, I have to lock the canvas before using it. (How threadsafe is TBitmap)
Do I ever have to unlock the canvas, or will TBitmap destructor do it for me? Is it safe to…

VLL
- 9,634
- 1
- 29
- 54
1
vote
0 answers
access pixels in 32bit TBitmap
I'm working on a VCL Windows desktop application using C++Builder 10.2 Tokyo.
I have the following to try to read out pixels from a TBitmap object in order to make further pixel-based manipulations. However, even though the codes recognizes 32bit…

smags
- 33
- 4
1
vote
1 answer
Delphi / C++ builder Windows 10 1709 bitmap operations extremely slow
Anyone experienced this problem? :
It appeared after Windows 10 update to build 1709.
After some system up time - a few hours -, bitmap loadings, imagelist item adding gets extremely slow. A 256x256 BMP loads in more than 10 seconds...while doing…

kgz
- 527
- 2
- 10
1
vote
2 answers
Difference between Delphi 2007 and 2010 when drawing on bitmaps
The following code works as expected with Delphi 2007. It takes a bitmap from an image list, draws a red X over it, and adds the new bitmap to the end of the same image list:
DynBmp:=Graphics.TBitMap.Create;
DynBmp.Transparent:=TRUE;
…

Mick
- 846
- 2
- 7
- 18
1
vote
0 answers
Delphi Firemonkey get/set TBitmap through RTTI
How can I get/set TBitmap through RTTI? I have done as following:
function TMyWebCam.BitmapToString: string;
var
RContext : TRttiContext;
RType: TRttiType;
prop: TRttiProperty;
value : TValue;
begin
RContext := TRttiContext.Create;
RType…

shariful
- 455
- 1
- 9
- 21
1
vote
1 answer
How can I streaming a published TBitmap property from DFM?
I created a published TBitmap property in Delphi 7. I can set its value by the editor in design time and if I recall the editor I can see the right picture. But when I save, close and reopen the form, the TBitmap property is empty. What is…

The Bitman
- 1,279
- 1
- 11
- 25
1
vote
1 answer
TBitmap.ScanLine[] takes too much time for execution
I am working with Delphi. I am using bmp.ScanLine[] in my code. My code is as follows :
bmp := TBitmap.Create;
bmp.Height := imgMain.Height;
bmp.Width := imgMain.Width;
for i := 0 to imgMain.Height - 1 do begin
prgb :=…

Himadri
- 2,922
- 5
- 32
- 56
1
vote
1 answer
How do I draw with scanlines without loading an image first?
I'm trying to do the following:
bmp := TBitmap.Create;
bmp.Width := FWidth;
bmp.Height := FHeight;
for y := 0 to FHeight - 1 do
begin
sl := bmp.ScanLine[y];
for x := 0 to FWidth - 1 do
begin
//draw to the scanline, one pixel at a…

Mason Wheeler
- 82,511
- 50
- 270
- 477
1
vote
1 answer
Remove BMP background and convert to trasparent PNG with Delphi
I have a TBitmap, inside the TBitmap there is load a "map image" (image of a map). This map image have a white background and a lot of black line (no antialising only 2 colors white background and black line).
Now I must do this:
Remove the white…

Martin
- 1,065
- 1
- 17
- 36