TImage is a VCL component that allows one to output images.
Questions tagged [timage]
133 questions
1
vote
1 answer
Enable TImage to open JPEGs, GIFs and PNGs in Delphi XE3?
I'm looking to reuse some code that draws a images on a device context in a dll. It uses TImage which works fine in the Original program. But in the dll BMPs and TIFFs load fine but it throws an error loading JPGs PNGs and GIFs which the original…

kaiken
- 77
- 7
1
vote
1 answer
How to overlap TImage over TChromium component
I'm having a little bit of a headache here since I can't really realize what's going on. So I have this TChromium element set as aligned to alClient. Now, since my borderStyle is bsNone (fullscreen app), I created 2 buttons to simulate minimize and…

Eduard
- 3,395
- 8
- 37
- 62
1
vote
1 answer
TImage picture disappears when reading its canvas?
I have a simple TImage control on a form. I've assigned a Bitmap image at design-time. When running, I read the canvas using TImage.Picture.Bitmap.Canvas. Everything works fine. Then, I load a JPEG image in design-time. However, now when I read this…

Jerry Dodge
- 26,858
- 31
- 155
- 327
0
votes
2 answers
Assign a picture to a TImage and define the background color of transparent pixels
Problem:
I have a TImage on a Delphi VCL form and want to assign a TGraphic.
The picture has transparent pixels.
When displaying the picture inside the TImage I want to display all transparent pixels in the color clBlue.
Unfortunately TImage does…

Michael Hutter
- 1,064
- 13
- 33
0
votes
1 answer
Delphi Game Timer program freezes up after 1.5 to 2 hours and sometimes gives an exception "Canvas does not allow"
I have a simple program, single threaded, with a main form that has the controls, and another form with a bitmap and some TLabels on top of the bitmap that have the score, clock time, penalty time teams, and period.
In my main form, I have a TTimer…

Craig
- 11
- 2
0
votes
1 answer
How do I make a TImage move (like a DVD logo)
I am trying to make a TImage move like a DVD logo, but the TImage is not moving.
This is the code I used:
void __fastcall TForm1::DVDLogoTimer(TObject *Sender)
{
image->Left+=xPos; image->Top+=yPos;
if (image->Left <=…

furybowser
- 13
- 4
0
votes
1 answer
Showing an animated .ani cursor on a form in Delphi 7
My application is loading list items from a database in the background with a separate thread. During the loading process the user can interact with the application, so I don't want to change the default cursor. Still, to visually signal the loading…

Steve
- 2,510
- 4
- 34
- 53
0
votes
1 answer
Try..Except ignored inside a thread
I have a basic try..except to catch errors when trying to load a PNG file into a TImage:
try
Previewimage.Picture.LoadFromFile(filename);
except
//code to handle exception
end;
Normally this works fine if the file does not exist, or in my case…

Some1Else
- 715
- 11
- 26
0
votes
2 answers
Delphi Custom TImage Component - MouseEnter, MouseLeave in component
I'm trying to build a component based on FMX.Objects.TImage. I want the permanently assigned images by MultiResBitmap.Items to change without having to use OnMouseEnter and OnMouseLeave in the application. Of course, I will use the constructor and…

Max_Poland
- 1
- 3
0
votes
0 answers
Delphi TImage Loading GIF Bad Qality
While a process is running in the background, I show a loading animation on the screen. But the GIF looks very bad quality. How can I fix this problem?
unit Unit3;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils,…

ryana42
- 11
- 1
0
votes
1 answer
Delphi 5: Error asigning click event to TImage
I created an custom control for the TStatusbar.
Its in old Delphi5 for windows.
The goal is, if I click the panel or the image, an event should be raise.
But I get an error by assigning the click event to the image.
The error is in line starts…

Thomas Müller
- 11
- 2
0
votes
1 answer
Animation of a Gif image is not working when execute a process
I have a Delphi project that consists of two forms namely MainForm and DialogForm. When I click on Button1, the DialogForm should appear and stay on top until a process complete (the process takes a few seconds to complete).
The DialogForm includes…

maroco sc
- 1
- 2
0
votes
0 answers
Delphi - TImage content may be lost on interface after running in 64 bit
I'm creating a project in Embarcadero RAD Studio XE7, in which I created a custom TGraphic component, available in a package. I also created a demo project, in which I use this custom TGraphic to populate a TImage component.
All is running well as…

Jean-Milost Reymond
- 1,833
- 1
- 15
- 36
0
votes
1 answer
OnClick event for dynamic TImage
I am trying to build a memory game with 16 pairs of cards.
I do not know exactly how to implement an OnClick event. I am new at using C++Builder, so please help.
The images are in an array, I allocate them dynamically like this:
for(int…

learning_code
- 13
- 5
0
votes
0 answers
add bitmap to existing TImage picture (vcl)
I'm building a VCL Forms Application in RAD Studio using C++. On the Form, I have a TImage object named Image2. I can add a picture to it like this:
Image2->Canvas->Draw(0, 0, Image1->Picture->Graphic);
Now, I want to add another picture on top…

relayman357
- 793
- 1
- 6
- 30