I want to look at the pixels in a .pdf image. I converted the .pdf to .bmp using Gimp. The .bmp looks just like the .pdf. I then tried to import the .bmp into a TBitmap. It worked partly, but not all the image was imported. The right side of the image (about a quarter) was completely black.
I only displayed the picture in Image1 to see what was going on. The width and height are given as the same as the .bmp, that is 850 x 1100 px.
Here is my code.
procedure TForm1.Click13(Sender: TObject);
var
MyPicture:TBitmap;
begin
MyPicture := TBitmap.Create;
MyPicture.LoadFromFile('c2.bmp');
Memo1.Lines.add('Height - '+inttostr(MyPicture.Height));
Memo1.Lines.add('Width - '+inttostr(MyPicture.Width));
Image1.Canvas.Draw(0,0,MyPicture);
end;
Thanks for any suggestions.