TImage is a VCL component that allows one to output images.
Questions tagged [timage]
133 questions
0
votes
3 answers
Delphi Created Images are not displayed
I am trying to dynamiclly create a custom component with images and display them in a Grid , but the Images don't show up. Below is the code with omitted part of declarations , could someone help me and tell me what am I doint wrong ?
Custom…

Karudi
- 2,692
- 3
- 18
- 19
0
votes
4 answers
Although setting TImage::Picture = NULL won't cause a memory leak, what alternatives exist that might avoid that confusion?
Despite bummi's fine explanation of why Image1.Picture := nil won't cause a memory leak, I'm concerned that it may raise red-flags in the minds of new people reading my code, since its safety is counter-intuitive. Therefore, I'd like to avoid it. …

Pete
- 424
- 4
- 14
0
votes
1 answer
Defining borders for image movement in Delphi
I need to move an image with along X-axis and, when it reaches defined borders, stop moving (I'm making my own trackbar). I can't find out how to define borders. With my code when it reaches border, it stucks there and unable to move. Here's the…

mcmillan
- 103
- 3
0
votes
1 answer
Delphi 7 - how to create a component with Text on the center of Image
I have problem with creating a component. I want to have an image and simple label on the center of this image. It have to be a component because I will create it dynamically form the code. How to do this? I don't know how to merge two components…

Michał Kwiecień
- 2,734
- 1
- 20
- 23
0
votes
2 answers
Can a TImage handle a 32bpp JPG Image?
For some reason, when I load a JPG image at design-time, the image shows as a grey scale image with vertical bars reminiscent of TV scan lines. and the image is not sized properly. The image is 500x364 32 bpp, and previews beautifully.
Is there a…
0
votes
2 answers
How to change picture delphi timage in run time
I use a timage in a form which load a background image.
The problem is when i choose another picture in run time and change it by
Img_Bk.Picture.LoadFromFile( SaveFileName );
It doesnt work (Picture did n't change ). I mean it shows previous…

Abl
- 63
- 2
- 10
0
votes
3 answers
Can I retrieve Filename for TPicture directly?
I have a Delphi application which displays an image using a TImage.
The location of the image is stored in a database and retrieved on load and set directly using code similar to…

Dan Kelly
- 2,634
- 5
- 41
- 61
0
votes
2 answers
TImage delphi max width and height?
My code -> displaying waveform stereo .wav file
max_l and max_r here is the highest value of the waveform in each channel.
form2:= TForm2.Create(self);
form2.Image1.Visible := true;
form2.Image1.Width := numsamples;
form2.Image1.Height := max_l…

Wawan Ma-chun
- 115
- 3
- 15
0
votes
0 answers
Delphi XE3 Firemonkey Scrollable TImage
I have multiple GIFs I need to display at the same time. Current plan unless anyone can point me to a 'Gallery' type control is to place the TImages onto a scrollbox. However, I can't get the scroll box to scroll either vertically (for the multiple…

Martin Moore
- 733
- 2
- 8
- 21
0
votes
2 answers
How do load an image into a 2D array element?
I'm currently doing my A-Level Computing project for which I am making my own version of the classic game Space Invaders.
To create the wave of space invaders I want to use a 2D array of images, where the images are loaded from a disk and then…

user2180030
- 17
- 1
- 5
0
votes
1 answer
TImage width / height anchor not working
I've got a TForm which has an Event FormResize, within that function I want to draw something within my TImage.
My FormResize function looks like below
void __fastcall TForm1::FormResize(TObject *Sender)
{
// Teken de blokjes
…

Niels
- 48,601
- 4
- 62
- 81
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;
…

user1641230
- 71
- 8
0
votes
1 answer
C++ access violation: TImage.Picture is null
I recently made some minor changes within my c++-builder-project-settings to distribute a built application, however now some kind of initialisation seems to be missing.
Before I was using this (worked properly):
TPngImage *img=new…

Julian
- 493
- 4
- 22
0
votes
3 answers
Delphi - Want an automated way of maintaining the link between a "source" image file and images in my project
One thing I find Delphi doesn't manage well is the link between image "source" files and the image components in my project (D2006 here but I'm assuming it applies to all versions).
Say I have various static images in my project - backgrounds,…

rossmcm
- 5,493
- 10
- 55
- 118
-1
votes
2 answers
Overcome TImage Control limitations
I am using TImage control inside TScrollBox control in Delphi 4. Here i am populating data in TImage control by increasing the height accordingly.
My functionality is based on the mousedown event where i am using X, Y parameters to do some…

Dev
- 629
- 2
- 9
- 23