This does work, but you didn't give us all details. Usually we cannot guess what might be wrong if you give a single line of code.
IIRC your bugrep about this (and the answer I gave there) you load an jpeg image into a TImage. then the format of the image is TJPEGImage and not a TBitmap.
When you "ask" a Image.Picure.Bitmap, it will convert to a TBitmap, loosing all data (this is the same for delphi).
So either store a bitmap in TImage or use TImage.Picture.Graphic (which doesn't convert)