DBImage to Image.

DBImage to Image.

Post by Sameer Mad » Thu, 19 Sep 1996 04:00:00



Hi. I have this tech problem that is bothering me. I need to display
four different records from a .db which has a DBImage as a datafield
on the screen simultaneously. I use the following code to convert a
dbimage to a TImage, do a Table.Next and repeat the same, four times,
for a different TImage object each time.

     DBImage1.CopyToClipboard;
     Bitmap1.Create;
     Bitmap1.Assign(Clipboard);
     ThisImage.Picture.Bitmap := Bitmap1;
     ThisNameLabel.Caption := DBEdit1.Text;
     ThisVersionLabel.Caption := DBEdit2.Text;
     ThisSizeLabel.Caption := DBEdit3.Text;
     Bitmap1.Free;

This works, but it is excruciatingly slow!!

Someone please help me out on this one! I'm desperate.

Could you please follow up the reply via e-mail please?

Thanks in anticipation,
Sameer Madan

 
 
 

1. How to delete an image in a DBImage ?

I would like the user to be allowed to use something like an edit | delete
menu option for TDBImage (data-aware image component). But how to erase an
image?
Till now, I have been using DBImage.picture := nil, but I feel it is not the
right way. Any comments?


2. Table exists?

3. Using DBImage to store JPEG images to database

4. Pro C Long Raw Copying

5. ** Load image from Table to DBImage so slow...........????

6. dts troubles

7. HELP- DBImage + Approach PicturePlus

8. Free DDF-Builder?

9. DBImage.CutToClipBoard

10. DBImage can't display JPEG

11. TJpeg and DBImage problem...

12. problems printing dbImages using QuickReports 2 with D3

13. DBImage?