Questions tagged [timage]

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

133 questions
0
votes
1 answer

Q: Is it possible to create & add a bitmap straight into Timage without saving to file first

I can make it work via creating the bitmap and saving it to a file. (The bitmap is a barcode). Afterwards loading it into the TImage via ppimage1.Picture.LoadFromFile(filepath); With this way of doing it, you have to create and delete a temp…
0
votes
0 answers

Delphi - image colors detection

i have a question, is there some library, or piece of code that can detect if color is most similar to greeen, blue, yellow or so? i can decompose the pixel color of TImage with this function: procedure RGB(Col: TColor; var R, G, B: Byte); var …
Fero
  • 35
  • 1
  • 1
  • 8
0
votes
2 answers

Know the path of Image

I'm a newbie in programming and I have a game(like Flappy Bird). IN my project I have to change Image usually and so in my MainForm I have an TImage. *My question is HOW CAN I EXACTLY KNOW WHERE THE IMAGE'S PATH of course I use…
Johnny
  • 57
  • 3
  • 8
0
votes
3 answers

Why do I get an access violation when assigning a JPEG to an array of TJPEGImages?

Formulae: array [1..6] of TJPEGImage; I have an array in which I want to assign images into so that I can display them onto a form. I've used similar code from the JPEG data-stream to TImage question but I get an access violation error message at…
astudent
  • 3
  • 1
0
votes
1 answer

Error when changing TImage picture on click event

I have the following basic code : procedure TForm4.shrek1Click(Sender: TObject); begin shrek1.Picture.LoadFromFile('donkey.jpeg'); end; Where shrek1 is a TImage, and donkey.jpeg is the image I want shrek1 to load when clicked. donkey.jpeg is…
0
votes
0 answers

TImage3D using too much memory in Firemonkey

I'm trying to create a game in Firemonkey. I'm loading a JPG (125x182 - 15,1kb) inside a TImage3D, and running the project, checking task manager for memory in use. The program goes from 22mb aprox. to 30mb+ simply by loading this JPG. I would like…
LeMag
  • 53
  • 1
  • 8
0
votes
1 answer

Delphi 6 : Alphablending works between sub-image and main Canvas, but not between sub-images

I have a Delphi 6 application where I have an array of TBitmaps each containing an image (sub-image) that was created by making a call to FillRect() with clWhite to flood the TBitmap's Canvas with white, followed by a call toTextOut() to print some…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
0
votes
2 answers

Access violation error at delphi while saving/loading image to/from stream

I am developing an application in delphi. I am trying to extract an image that is saved in database, save it to TMemoryStream and load same image at TImage control placed on other form that will populate dynamically. I am getting access violation…
0
votes
2 answers

how to use Picture.LoadFromFile() in TcustomContol

I created a TSkinPanel derive from TcustomControl it has a FGraphic: TPicture. the FGraphic is drawn on the canvas of the TSkinPanel and works fine if you load and image from the TObject Inspector. but i doesnt won'k work on loading image on…
XBasic3000
  • 3,418
  • 5
  • 46
  • 91
0
votes
1 answer

How to load an image from Firebird Database as Blob to TImage in Delphi with FireDAC?

I've searched on many places on internet but I couldn't find a proper solution yet. Most of the examples uses other component or aims direct saving etc. My problem is that ; I have 2 database on server one is holding Products' info (stock code,…
Alper
  • 1,085
  • 3
  • 20
  • 39
0
votes
0 answers

TImage saves my PNG image with transparency as JPEG after sharing in Delphi XE8

I assign a PNG image with transparency to the TImage component in Delphi XE8, used the sharesheet action to share this image. The successful result on my smartphone is now a JPEG image which loses all the transparency obviously. My transparent…
Smith
  • 3
  • 3
0
votes
0 answers

How to refresh TImage object in Delphi?

I created simple project to show you my problem with TImage component. For example I added TCategoryPanelGroup, TCategoryPanel, TImage and two standard buttons which are use for hiding and showing Picture in TImage copomonent. You can see code for…
astack
  • 161
  • 4
  • 16
0
votes
0 answers

Problems with TVideoImage

I'm problems with TvideoImage, I use to capture image from webCam. I have a Timage and I set using fVideoImage.setDisplayCanvas(imgCamera.canvas), the first runs cool, but when I try open again, no longer works. The Image is white. my code is: on…
0
votes
1 answer

C++ Builder TImage Load From URL

Am having trouble figuring out how to load an image from a URL into a TImage control. Broadly, this is what I need to do TMemoryStream *str = new TMemoryStream; http->Get("http://myurl.mydomain.com/myimage.jpg", str); The problem seems to be…
K Y Iyer
  • 315
  • 1
  • 4
  • 11
0
votes
0 answers

How do I change individual RGB channel values for images using Firemonkey (Delphi XE6)

I have an application that needs to allow the user to change the hue of a jpeg stored in a TImage, I’ve successfully used the filter “THueAdjustEffect” that comes with Delphi XE6 to do this, however I need to be able to control this with more…
1 2 3
8 9