Ticket #9639 (closed enhancement: fixed)
wxImage::GetType() enhancement
| Reported by: | troelsk | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | GUI-all | Version: | 2.9-svn |
| Keywords: | wxImage wxBitmapType | Cc: | |
| Blocked By: | Patch: | yes | |
| Blocking: |
Description
This construct fails to report the file type
wxAnimate ani;
ani.Load("my.gif");
wxImage image = ani.GetFrame(0);
image.GetType() -> undefined
(expected wxBITMAP_TYPE_GIF - but wxImage::DoLoad is not called)
Patch:
- Add type parameter to wxImage::Create
- Use type parameter in calls to wxImage::Create, in the image decoders
- Remove wxImage::DoLoad type handling
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

