Questions tagged [timage]

TImage is a VCL component that allows one to output images.

126 questions
5
votes
1 answer

How I can load a Png image from file which have another extension?

I'm using a TImage component to load some png images, but some of them have the .imp extension. I add the Vcl.Imaging.pngimage unit to my code and I'm using this code to load the images if OpenDialog1.Execute then …
Salvador
  • 15,053
  • 31
  • 128
  • 232
4
votes
1 answer

DrawFocusRect with given aspect ratio in Delphi

I want to be able to draw a FocusRect on an image, which keeps the aspect ratio of the image. My problem is, that the FocusRect only depends on the y coordinates of the mouse. I just don't know how to let the rectangle depent on both mouse…
Henry
  • 43
  • 3
4
votes
5 answers

How can I display a transparent PNG on Delphi 2007?

The TImage control doesn't support PNG. Is there some third party component that will?
cfischer
  • 23,024
  • 36
  • 125
  • 209
4
votes
1 answer

Delphi 6 : How can I display large size high quality Text via the TextOut() method?

I have a TImage component that I print a Text string to using TCanvas.TextOut(). I set the height and width of the TImage to a large size like 50 pixels X (TextWidth) pixels, and set the Canvas font Height to something a little smaller like 48…
Robert Oschler
  • 13,520
  • 17
  • 74
  • 209
4
votes
3 answers

Timage Transparencies on laptops in Delphi 7

WHAT I AM TRYING TO DO I am trying to draw multiple graphics to a Timage, These graphics that i Draw consist of ordered layers with Foodfills and lines. I use multiple buffers to ensure ordering and double buffering. WHAT I AM DOING procedure…
Arthur
  • 3,146
  • 11
  • 41
  • 67
4
votes
1 answer

Zoom image using delphi

I am working with delphi. I have TImage, to which I assign a bitmap. imgmain.Picture.Bitmap := bmpMain; imgmain.Picture.Bitmap.PixelFormat := pf24bit; imgmain is object of TImage and bmpMain is object of TBitmap I want to zoom my image. I have…
Himadri
  • 2,657
  • 5
  • 28
  • 54
4
votes
3 answers

How to test if a TImage has a graphic assigned to it?

There's a TImage component on a form in my program. In some situation, the program must test: If "there is an image assigned to the picture property of the TImage component" then ... How can I do this?
Raphael
  • 51
  • 1
  • 4
4
votes
2 answers

How to draw on the entire area of a resized TImage in Delphi?

I've narrowed a problem I have drawing on TImage.Canvas in Delphi 2009 down to the following reproducible case: Given: a form, a TImage, TLabel and TButton on it. The TImage is anchored to all four edges so that resizing the form will resize the…
PhiS
  • 4,270
  • 21
  • 34
4
votes
2 answers

Delphi: creating & displaying TImage on FormCreate

Being quite a newbie, I've just had my first question answered (Delphi: TImage.Create causes Access violation) to immediately bump into a new problem: procedure TSelectorForm.FormCreate(Sender: TObject); var Loop: Byte; begin for Loop := 1 to 10…
Mikhail
  • 1,266
  • 6
  • 20
  • 29
4
votes
1 answer

Display JPEG, fit an image larger than the control so it just exactly fits in the Timage control bounds

If I load an image from a file like this Image1.Picture.LoadFromFile(imagePath); and the JPEG I load is bigger than Image1 which is a TImage - how do I scale it to fit?
Mawg says reinstate Monica
  • 34,839
  • 92
  • 281
  • 509
3
votes
1 answer

Transparency in TImage

When a new TImage is created it is transparent. After drawing objects to this image I would like to clear them. Note that I need to keep the image transparent as the TImage is being used as an overlay to another image. Some sort of "clear" function…
Arthur
  • 3,146
  • 11
  • 41
  • 67
3
votes
0 answers

How send correctly mouse coordinates inside TImage component to Android Path.moveTo() and Path.lineTo() methods?

I found a android code that your goal is simulates an L-shaped drag path: 200 pixels right, then 200 pixels down. These values was predefined on code, how this could be achieved using the mouse coordinates of a TImage component and your events…
BrowJr
  • 415
  • 5
  • 20
3
votes
1 answer

Why doesn't this D2006 code to fade a PNG Image work?

This question springs from an earlier one. Most of the code is from suggested answers that probably worked in later versions of Delphi. In D2006 I don't get the full range of opacity, and the transparent part of the image shows as white. Image…
rossmcm
  • 5,184
  • 7
  • 51
  • 108
3
votes
1 answer

How to display a TImage as a background of a TGrid on Firemonkey?

I have a TGrid on a form. I need to display a TImage inside that grid, as it´s background. I know that in Firemonkey framework, controls are containers to other controls. Having that in mind, I dragged the TImage Object to the TGrid Obect using the…
Leonardo
  • 41
  • 6
3
votes
1 answer

delphi 7 TImage and TImageList

let i be integer private the code procedure TForm1.Image1Click(Sender: TObject); begin inc(i); ImageList1.GetIcon(i mod 4,Image1.Picture.Icon); end; procedure TForm1.FormCreate(Sender: TObject); begin i:=0; ImageList1.GetIcon(i mod…
none
  • 4,256
  • 13
  • 54
  • 96
1
2
3
8 9