Questions tagged [tbitmap]

50 questions
0
votes
1 answer

How to add new Bitmap format to TBitmapCodecManager

I have written a class for reading and writing PPM files (don't ask, I didn't chose this format). I would like it to be a part of the TBitmap loading/saving system. Does any one know how I can add this support? Do I really have to write/install a…
Max Kielland
  • 5,627
  • 9
  • 60
  • 95
0
votes
1 answer

Delphi ios scale Bitmap inside ImageControl

I have 75*75 .png files, but I want them to show in a 150x150 sized ImageControl with transparent background. I currently use this code: FBitmapBufferLoadFromFile(...); icContactsDetails.Bitmap := TBitmap.Create(0, 0); …
Tom
  • 3,587
  • 9
  • 69
  • 124
0
votes
2 answers

Delphi TBitmap code to Python PIL

I am trying to convert some Delphi code to Python PIL. The problem is two pronged. First, I'm not a Delphi programmer. Second, I haven't used PIL before today so I may have problems in either area. case PixelFormat of pf32bit: PixSize:=4; …
-2
votes
1 answer

Need a method to calculate the extents of the actual drawing items in a tcanvas

I am using a paintbox component to draw various shapes using rect, polygon and other canvas methods. After the user has created the drawing, I want to save a bitmap for use in a listbox. The problem is that the drawing may only use a small portion…
Ashlar
  • 636
  • 1
  • 10
  • 25
-2
votes
1 answer

Picture value of TImage is not staying TBitmap

In a Delphi XE3 project, I am having an issue in changing a bitmap image. In the design view the picture value of a TImage is TBitmap, as shown: However, when I change the image, the picture value is a TDXSmartImage: So far, the actual image type…
1 2 3
4