mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@14337 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
3d21eb1d31
commit
16775ee428
3 changed files with 18 additions and 1 deletions
9
upptst/AlphaBlendDeviceCaps/AlphaBlendDeviceCaps.upp
Normal file
9
upptst/AlphaBlendDeviceCaps/AlphaBlendDeviceCaps.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
main.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
|
||||
8
upptst/AlphaBlendDeviceCaps/main.cpp
Normal file
8
upptst/AlphaBlendDeviceCaps/main.cpp
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
DDUMP(GetDeviceCaps(GetDC(NULL), SHADEBLENDCAPS) & SB_PIXEL_ALPHA);
|
||||
}
|
||||
|
|
@ -11,7 +11,7 @@ struct MyApp : TopWindow {
|
|||
|
||||
void Sync() {
|
||||
double tm = (double)usecs();
|
||||
imgb = GaussianBlur(img, ~radius, co);
|
||||
imgb = Grayscale(img); // GaussianBlur(img, ~radius, co);
|
||||
tm = (double)usecs() - tm;
|
||||
Title(String() << tm << " us");
|
||||
Refresh();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue