Questions tagged [timage]

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

133 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
  • 16,132
  • 33
  • 143
  • 245
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
  • 24,452
  • 37
  • 131
  • 214
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
  • 14,153
  • 18
  • 94
  • 227
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,376
  • 11
  • 43
  • 70
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,922
  • 5
  • 32
  • 56
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
1 answer

Scroll Image in Delphi TImage

I have a Delphi TImage component wich show pictures. Sometimes the pictures are larger than the image size and requires scrolling. I dont want to use the stretch property and auto size property, I want to see the picture by scrolling it. how can I…
Rojin
  • 109
  • 3
  • 6
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,540
  • 25
  • 35
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,326
  • 6
  • 22
  • 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
  • 38,334
  • 103
  • 306
  • 551
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,376
  • 11
  • 43
  • 70
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…
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,493
  • 10
  • 55
  • 118
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,669
  • 14
  • 62
  • 102
1
2
3
8 9