Search found 26 matches

by Randajad
Wed Aug 29, 2012 4:19 pm
Forum: C++ Development
Topic: wxQuantize problem
Replies: 11
Views: 2902

Re: wxQuantize problem

Okay. This is bug in wx. imaggif.cpp:729: Change buf[3] = (maskIndex != wxNOT_FOUND) ? 1 : 0; // has transparency To buf[3] = (maskIndex != wxNOT_FOUND) ? 1 | 2 << 2 : 0; // has transparency It's also need to set proper disposal flag. http://www.u229.no/stuff/GIFFormat/ Now image goes in right way. ...
by Randajad
Wed Aug 29, 2012 1:33 pm
Forum: C++ Development
Topic: wxQuantize problem
Replies: 11
Views: 2902

Re: wxQuantize problem

Okay. I don't draw anything. Do u see the pucture? When character from picture moving, then it's leaves a trail. :( I only have array of pictures to pass to wxGIFHandler::SaveAnimation. It's need to me to take valid gif animation from picture array. I mean that if gif is diff-based format, then it's...
by Randajad
Wed Aug 29, 2012 12:31 pm
Forum: C++ Development
Topic: wxQuantize problem
Replies: 11
Views: 2902

Re: wxQuantize problem

Bump. Should i post this to bug trac?
by Randajad
Tue Aug 28, 2012 3:06 pm
Forum: C++ Development
Topic: wxQuantize problem
Replies: 11
Views: 2902

Re: wxQuantize problem

Tkanks!
Okay, i try to do this after quantize. It works, i see. But i have another problem. It seems, that frame doesn't clears after drawing.

Image

It seems bug in wx. When i don't use alpha, all is ok.
by Randajad
Thu Aug 23, 2012 7:22 am
Forum: C++ Development
Topic: wxQuantize problem
Replies: 11
Views: 2902

Re: wxQuantize problem

Okay, it works and now i can save png after quatize. But wxGIFHandler::SaveAnimation doesn't uses alpha channel, so, i think, it's need to be transparent color in pallette. Or i goes in wrong way?
I'm need to create gif image from others images. :)
by Randajad
Wed Aug 22, 2012 8:48 pm
Forum: C++ Development
Topic: wxQuantize problem
Replies: 11
Views: 2902

wxQuantize problem

Hello for all! I trying to create gif image from images so i use wxQuantize, but have a problem. Simple code:

Code: Select all

wxImage my_image;
...

wxImage image;
wxQuantize::Quantize(my_image, image, 256);

image.SaveFile("res.png"); /// image have no transparent, but it was!
What i'm doing wrong?
by Randajad
Thu Jun 28, 2012 6:51 am
Forum: C++ Development
Topic: Semi transparent window
Replies: 1
Views: 998

Re: Semi transparent window

Oh, also i had tried create two separate windows. It works(oh!), but i have problems with Z-order when clicking on background/WWC.
by Randajad
Wed Jun 27, 2012 8:55 pm
Forum: C++ Development
Topic: Semi transparent window
Replies: 1
Views: 998

Semi transparent window

Hello for all! Subj. Needs to do interface with PNG picture at background with different transparent level. Okay, it's done by UpdateLayeredWindow. But it's need controls on this window. I have seen this: http://www.codeproject.com/Articles/42032/...logs-with-Stand and tries many times to "google". ...
by Randajad
Sun Nov 07, 2010 8:46 am
Forum: wxCode
Topic: wxIEHtmlWindow
Replies: 3
Views: 1562

I need to set wxBitmap whos generated by my app as background image to html page.

About default browser... When i click link in wxIEHtmlWindow it open's in IE, not default browser.

Thanks
by Randajad
Sat Nov 06, 2010 11:56 am
Forum: wxCode
Topic: wxIEHtmlWindow
Replies: 3
Views: 1562

wxIEHtmlWindow

Hey, guys.

There are two questions:
1) How to set background image for wxIEHtmlWindow?
2) How to open url's in default browser?

:shock:

Thanks
by Randajad
Wed Sep 08, 2010 9:27 am
Forum: wxWidgets Development (Russian)
Topic: Пристыковка к краям экрана
Replies: 1
Views: 1273

Поковырял еще, теперь работает как надо! Если кому интересно: void main_dlg::OnMove(wxMoveEvent &) { wxPoint pos = GetPosition(); wxSize display_size = wxGetDisplaySize(), size = GetSize(); int deltax = display_size.x - pos.x - size.x; if(deltax < 20 && deltax > -20) Move(display_size.x - size.x, po...
by Randajad
Wed Sep 08, 2010 7:28 am
Forum: wxWidgets Development (Russian)
Topic: Пристыковка к краям экрана
Replies: 1
Views: 1273

Пристыковка к краям экрана

Доброго времени суток, хотелось бы узнать, существует ли такое в wx? Искал, не нашел, своя реализация как то странно себя ведет. :shock:

Заранее спасибо!
by Randajad
Tue Sep 07, 2010 7:57 am
Forum: wxWidgets Development (Russian)
Topic: Опять wxHtmlWindow ~_~
Replies: 2
Views: 1209

Ага, если это делать в конструкторе то после отображения окошка все нормально, а если отобразить окошко и потом сделать фоновую картинку получаем гладиолус.
by Randajad
Sat Aug 28, 2010 6:08 pm
Forum: wxWidgets Development (Russian)
Topic: Опять wxHtmlWindow ~_~
Replies: 2
Views: 1209

Опять wxHtmlWindow ~_~

Доброго времени суток, если делать HtmlWindow->SetBackgroundImage(); то картинка появляется только после того, как приложение развернули и свернули. HtmlWindow->Refresh() не помогает. Кто знает как лечить?

Заранее спасибо!
С уважением.
by Randajad
Fri Aug 27, 2010 11:43 am
Forum: wxWidgets Development (Russian)
Topic: Перетаскивание за панельку
Replies: 2
Views: 1431

Ага! Спасибо большое.