Questions tagged [timage]

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

133 questions
2
votes
1 answer

How do I load png from web into TImage control?

I have several small .PNG pictures I wan't to load from a web-address and into TImage images in my application. The pictures are "dynamic", so I don't want to "hardcode" them into my app by using TImageList etc. I have seen several examples, but…
Roar Grønmo
  • 2,926
  • 2
  • 24
  • 37
2
votes
1 answer

How to get top position of TImage picture?

I have a TImage with Align := alClient, Stretch := True, Proportional := True and Center := True inside a TPanel. How to get the top pixel position of the picture that is drawn in the image? Perhaps an image describing the problem will help: I saw…
Steve F
  • 1,527
  • 1
  • 29
  • 55
2
votes
2 answers

Using an ImageMap extracting Images (PNG) and display on TImage

I'm trying to achieve the following: Assume a large png (transparent background 16000 x 70px) which contains 50 different other png files... I need to load that png and extract individual pngs from it (best would be e.g. to have kind of a function…
stOrM
  • 103
  • 1
  • 9
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
0 answers

Can't get Gestures working on TImage Object in Delphi XE5

I'm writing an Android app and am having some problems using gestures to slide through images. I have a client data set with a Blob field called SavedPicture which is bound visually to the TImage. I initially made 2 buttons, previous and next, for…
El Xando
  • 49
  • 6
2
votes
1 answer

Getting the coordinates of the Bitmap inside a Timage

I have a TImage Control (not TImageControl) in Firemonkey. The Bitmap inside that control is centered and ocupies not the entire TImage. How can I get the coordinates of the Bitmap (Left And Top)?
runs
  • 95
  • 2
  • 7
2
votes
1 answer

Delphi TImage Over A TSpeedButton

I want to put a TButton or TSpeedButton over top of a TImage and make the button transparent so you can still click it, but you see the image rather than the button. I can't seem to get this to work though, I changed the TSpeedButton to transparent,…
user1970794
  • 253
  • 3
  • 16
1
vote
0 answers

StretchDraw to printer.canvas loses the transparency

I have a TImage with a 24 bit BMP (or any other type) and I try to print it to the Adobe PDF printer. I set the transparent property as TRUE but the Bitmap printed in a black background without any transparency. I tried to set the canvas.brush as…
JimPapas
  • 715
  • 2
  • 12
  • 27
1
vote
4 answers

Loading images into TImage, via array

I'm very new to delphi, doing a project for my A level. When I run my code the images just don't show, I've looked everywhere and my teacher can't help me. Can anyone tell me what I'm missing? const Animal : array[0..6] of string = …
1
vote
1 answer

Delphi dll image stretchdraw errors

I am trying to resize (scale) a bitmap image using a dll function which is below mentioned { to resize the image } function ResizeImg(maxWidth,maxHeight: integer;thumbnail : TBitmap): TBitmap; var thumbRect : TRect; begin thumbRect.Left := 0; …
Shirish11
  • 1,587
  • 5
  • 17
  • 39
1
vote
1 answer

How to duplicate TImage component with the image using RTTI

I know how to copy and duplicate a TImage component and others using RTTI. But, I do not know if the image within the orginal TImage, that was loaded before, can be replicated along with the duplication. Is it possible to duplicate the image inside…
Gil Golan
  • 11
  • 2
1
vote
2 answers

How to render a TBitmap image in a cell of a TGrid?

I am rendering the content of a database table in a TGrid, which works fine. Now I would like to show an image of a trash can on every row as a button to delete the row. How can this be done?
1
vote
1 answer

Inverting a bitmap in Embarcadero C++Builder

The same problem happens in Borland C++Builder 6 and Embarcadero C++Builder 2010. When I try to invert an image, the form freezes for about 5 seconds and nothing happens. When I click again, the image is inverted within a blink of an eye, and again,…
hennep
  • 545
  • 4
  • 12
1
vote
1 answer

Problem with OnClick event signature in C++Builder

I would like to create a function which replaces the current image with another one. The problem is that I have 64 pictures to replace. I created a function with a TImage* Sender parameter but it works only when I set Sender as TObject* instead. How…
donefun
  • 51
  • 5
1
vote
1 answer

how to get image from TWebBrowser into a TImage

I have a panel at the top of a form with a smallish TMemo set up as a drop target for URLs. Below that I have a Page Control with 2 tabs. I set up a TWebBrowser in one tab and some other stuff in the second tab. In the TWebBrowser, I need to login…
David
  • 101
  • 1
  • 10
1 2 3
8 9