Questions tagged [timage]

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

133 questions
1
vote
4 answers

How to save jpg image to database and then load it in Delphi using FIBplus and TImage?

How do I save a jpg image to database and then load it in Delphi using FIBplus and TImage?
Grrey
  • 671
  • 1
  • 6
  • 4
1
vote
1 answer

trying to draw over a timage

I have written a simple program (using Delphi XE7); it has a TImage and a TPaintBox (partially over the Timage). In the FormPaint procedure I am calling "BringToFront" and then drawing a (filled) rectangle. The rectangle appears under the…
1
vote
1 answer

How to make a thumbnail from a JPG or PNG and load it into a Timage control?

How can I make a thumbnail from a JPG or PNG and load that thumbnail into a TImage control? I've tried stuff like this, but the TImage does not look like is loading something. Image2 is a TImage control. function resize2(source: string):…
Kan
  • 111
  • 1
  • 10
1
vote
1 answer

How to assign a graphic to an FMX TImage in the IDE?

In the Delphi IDE, how do you assign a graphic to a TImage? In VCL, in the Object Inspector, you use the "Picture" property of the TImage. But in FMX, I don't see "Picture" in the Object Inspector, or anything else like it ("Bitmap", "Graphic",…
Kevin Killion
  • 123
  • 2
  • 9
1
vote
1 answer

Wrong color when using CopyRect to copy from large image to smaller canvas

I was writing a function to shrink a source image (JPG file) according to a 170 x 200px picture. The source JPG image was loaded into a TImage (Image1, fixed size of 400 x 400px, stretched to fit with aspect ration maintained), then the user will…
Kw Choy
  • 129
  • 1
  • 1
  • 10
1
vote
2 answers

How do I reset the scrolling after removing images in TScrollBox?

I have a Delphi form with a TScrollBox and some TImage components, and the form's scrollbox is not resetting when it's emptied... it appears to be growing every time a new image is thrown in the box. I would like to reset the scroll range/size to…
Joseph Poirier
  • 386
  • 2
  • 17
1
vote
1 answer

Delphi 6: TImage Width and Height properties report wrong values?

I'm having a fairly strange problem with a TImage component's width and height properties. As a test, I draw a red dot in (what is supposed to be) the center of the TImage component by taking the midpoint of the TImage's width and height and…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
1
vote
2 answers

Delphi 6 : How to create a Bitmap with TextOut that has an Alpha channel?

I'll describe my overall goal in case the question I asked isn't in the best form to get the answer I'm looking for. I have a sphere of words or "word ball" that spins around the X axis. As words spin to the back (Z coordinate goes from -1 to 1,…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
1
vote
3 answers

C++ Builder Delete Objects of dynamic Array

I want to delete old images I created in a for loop. The first time clicking the Button the images are created. The second time or third, whatever, the old Images that were created should now be deleted (before the loop) and then directly recreated…
Philip1895
  • 81
  • 12
1
vote
3 answers

Problem with TImage and TScrollBox

I am working with delphi. I have one scroll box in which I am putting TImage control. Now I wanted to zoom the image rendered into TImage control. So, I am using stretchDraw method of TCanvas. My code is - if sbZoom.Down then begin rct :=…
Himadri
  • 2,922
  • 5
  • 32
  • 56
1
vote
2 answers

TImage losing loaded picture

Running Turbo Delphi Pro. I'm using TImage to display a png image. When I restart Delphi and load the dpr file, TImage is still there, but the picture is lost, requiring a reload of the picture before compiling. At first I thought it's a path issue,…
ChuckO
  • 2,543
  • 6
  • 34
  • 41
1
vote
1 answer

Revert to design-time TImage picture

How to revert to default design-time assigned picture of TImage component in Delphi XE+?
user1593881
1
vote
0 answers

Force Picture loading handler of TImage in design-time

Im using few libraries that unregister previous TPicture loading in TImages in design-time. It looks like it is using TPicture.RegisterFileFormat and TPicture.UnregisterGraphicClass. This is not a problem in general, but now I want to load some…
Jakub Krol
  • 350
  • 5
  • 16
1
vote
1 answer

TImage Stretch XE5

in XE5, using TImage, how can I stretch a bitmap with his proportional dimensions? The TImage has 200 pixels width and 300 pixels height. And the bitmap has 130 width and 80 height. When I set Image1.WrapMode to iwStretch the bitmap is resized to…
user2880780
  • 51
  • 1
  • 3
1
vote
2 answers

Change an image inside a Delphi compiled executable

I've been asked to do a complicated job, I do not know if it can be done. A company had an application developed in Delphi (not that version) and asked me if I could change some images that appear inside the app. With the "Resource Hacker" I could…
Víctor Martín
  • 3,352
  • 7
  • 48
  • 94
1 2 3
8 9