Welcome, Guest
Username: Password: Remember me
Discussions for CodeTyphon Studio Installation and Setup.
  • Page:
  • 1

TOPIC:

TGraphic.mimetype always gives 'image/png' 12 years 7 months ago #1809

  • 4aiman
  • 4aiman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
Well, it is so. Mimetype of tgraphic is always return 'image/png'.
The first image in tested TImage was png, and I wrote a code, that checks mimetype of TImage.Picture.graphic and did some manipulations. But after replacing PNG with BMP of GIF or JPG or whatever Mimetype is still png.
So, Is this a bug, or should I go and read some mans? Considering this it's the first one.

Anyway, could someone show me how to check what mimetype of image it is, cause I'm coing to draw on that image (not on timage.canvas, but timage.picture.png.canvas or timage.picture.bitmap.canvas or so...)
コンソールマニアック

Please Log in or Create an account to join the conversation.

Re: TGraphic.mimetype always gives 'image/png' 12 years 7 months ago #1811

  • 4aiman
  • 4aiman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
Now I've got it. I must perform picture.clear before loading any new image. At least it worked for me.
コンソールマニアック
The following user(s) said Thank You: Konstantinos Papadoulas

Please Log in or Create an account to join the conversation.

  • Page:
  • 1