Questions tagged [timage]

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

126 questions
18
votes
2 answers

FireMonkey iOS RAD Studio XE2 - Display Image on form loaded from URL

Is it possible to place a TImage on an FMX form for iOS and load image (jpg) from an URL into this TImage to be displayed in the iOS app? I have tried with no success. Any hints or point in the right direction is appreciated.
ckglobalroaming
  • 257
  • 3
  • 10
16
votes
4 answers

Scale an image nicely in Delphi?

I'm using Delphi 2009 and I'd like to scale an image to fit the available space. the image is always displayed smaller than the original. the problem is TImage Stretch property doesn't do a nice job and harms the picture's readability. (source:…
X-Ray
  • 2,724
  • 1
  • 32
  • 63
14
votes
4 answers

How do I get the coordinates of the mouse when a control is clicked?

In a TImage's OnClick event, I would like to extract the x,y coordinates of the mouse. I would prefer them in relation to the image, but in relation to the form or window is just as good.
Arthur
  • 3,146
  • 11
  • 41
  • 67
11
votes
1 answer

Delphi - How to correctly register a graphic class since XE8?

I'm writing a Delphi package, which provides a new custom TGraphic object, allowing to read a new image format in VCL components like TImage. I originally developed this package with RAD Studio XE7, and it worked well. However I migrated recently to…
Jean-Milost Reymond
  • 1,481
  • 1
  • 10
  • 29
10
votes
2 answers

How to load a transparent Image from ImageList?

I want to load a picture (32 bit-depth, transparent) from a TImageList to an TImage. The standard approach would be ImageList.GetBitmap(Index, Image.Picture.Bitmap);. However the GetBitmap method doesn't work with transparency, so I always get a…
Martin Melka
  • 5,854
  • 10
  • 60
  • 114
9
votes
4 answers

How to load an arbitrary image from a BLOB stream into a TImage?

If I understand it correctly, TImage.LoadFromFile determines the type of picture from the file extension. Is there any way to detect the image type automatically from a TBlobStream with a raw image in it? My current code: procedure…
Jens Mühlenhoff
  • 13,744
  • 6
  • 47
  • 101
9
votes
1 answer

How to load a small system icon?

I need to display 16x16 pixel icons for error/warning/information. Unfortunately both LoadIcon(0, IDI_*) and LoadImage(0, OIC_*, IMAGE_ICON, 16, 16, LR_SHARED) always give me the 32x32 version of the icon. I read about ShGetStockIconInfo but that is…
Oliver Giesen
  • 8,745
  • 5
  • 43
  • 81
9
votes
1 answer

JPEG data-stream to TImage

I have some image-files stored into one file (some kind of archive). That file looks like this: Well, it's separated into two segments - header and data-segment. Header (green) contains various info, such as album name, location, date/time,…
Wh1T3h4Ck5
  • 8,045
  • 9
  • 52
  • 74
8
votes
0 answers

Delphi - How to correctly register a custom graphic class since Rio 10.3.3

So I'm developing a graphic library providing a custom SVG image format which may be used within a TPicture, or any VCL component supporting a graphic image, like e.g a TImage. I wrote and maintain my library package since the XE7 compiler version,…
Jean-Milost Reymond
  • 1,481
  • 1
  • 10
  • 29
8
votes
3 answers

Why is TImage rotating my image?

Writing a mobile application - it's pulling images from a secure website, and shown below (the first image) pulls incorrectly (notice web version vs mobile version), the second image shows correctly on the website, but Delphi TImage is rotating it…
Zack Burns
  • 157
  • 1
  • 10
7
votes
1 answer

Does clearing an image by assigning Image1.Picture := nil; cause a memory leak?

I have read here http://delphi.about.com/od/adptips2005/qt/cleartimage.htm that a way to clear an image from a TImage is to assign nil to .Picture, like this: Image1.Picture := nil; I just want to be sure... I guess the…
ZioBit
  • 774
  • 6
  • 24
6
votes
2 answers

How to insert picture in the Delphi program itself?

I have used a TImage component in my program. At runtime, I add an image to the component by using: Image1.Picture.LoadFromFile('C:\Users\53941\Pictures\eq1.jpg'); Now, I want to run this program on some other computer, which would not have this…
Aryaman Bansal
  • 83
  • 1
  • 1
  • 6
5
votes
1 answer

Delphi 2006: Run-time assignment of PNG to TImage loses alpha transparency

Delphi 2006's TImage doesn't quite support PNGs. In order to have images with alpha transparency on my forms I have to load them at run-time. I can load them at design time but they don't survive, I think because PNGs are not saved in the DFM…
rossmcm
  • 5,184
  • 7
  • 51
  • 108
5
votes
0 answers

MultiResolution in Firemonkey Mobile Application

Is there any demo available that shows how multi-resolution images should be handled in a mobile application with button images, splash screen and a background for example? I'm trying to make an application that looks nice on many resolution but i…
Mitsoloth
  • 145
  • 1
  • 11
5
votes
1 answer

How to display all picture formats in TImage using Delphi

I have written an application that stores photos, keeping the path to the photos in an database. I have encountered a problem. When I click my button to select the picture I want to display in an TImage object for the user to view before saving, I…
Japster
  • 961
  • 4
  • 19
  • 38
1
2 3
8 9