Search found 7 matches

by _Ne0n
08 Jan 2019, 12:45
Forum: Scripts and Functions (v1)
Topic: GDI+ standard library 1.45 by tic
Replies: 438
Views: 247575

Re: GDI+ standard library 1.45 by tic

Hello :) I have next function: GDI_CreateBitmapFromFile(dir,w=0,h=0,bkg=0) { bitmap:=Gdip_CreateBitmapFromFile(dir) if(w<=0 || h<=0) return bitmap bOut:=Gdip_CreateBitmap(w,h) graphics:=Gdip_GraphicsFromImage(bOut) if(bkg) pBrush:=Gdip_BrushCreateSolid(bkg) ,Gdip_FillRectangle(graphics,pBrush,0,0,w,...
by _Ne0n
27 Dec 2018, 18:51
Forum: Scripts and Functions (v1)
Topic: GDI+ standard library 1.45 by tic
Replies: 438
Views: 247575

Re: GDI+ standard library 1.45 by tic

How it looks? :0
Just AHK and GDI+.
by _Ne0n
18 Dec 2018, 09:05
Forum: Scripts and Functions (v1)
Topic: GDI+ standard library 1.45 by tic
Replies: 438
Views: 247575

Re: GDI+ standard library 1.45 by tic

nnnik, thank u for hint. I saw on this function, but not used it cos it draw's bitmap into pGraphics. (I needed DC>DC) I will try do something with it.
by _Ne0n
17 Dec 2018, 15:06
Forum: Scripts and Functions (v1)
Topic: GDI+ standard library 1.45 by tic
Replies: 438
Views: 247575

Re: GDI+ standard library 1.45 by tic

swagfag , thank you for reply. I write script using OOP. This script have next structure: class GUI class Button class Edit class DDL e.t.c Like a standard AHK gui. What u think about it? Gui engine from scratch, is it good idea? Each class have its own bitmap(CreateDIBSection), DC(CreateCompatible...
by _Ne0n
17 Dec 2018, 08:47
Forum: Scripts and Functions (v1)
Topic: GDI+ standard library 1.45 by tic
Replies: 438
Views: 247575

Re: GDI+ standard library 1.45 by tic

The following code fills the window with gray and draws two rectangles. How to draw the second rectangle transparent relative to the first rectangle? It should be like this. https://i.imgur.com/Te7bC05.png #include Gdip.ahk if(!Gdip_Startup()) msgbox % "Can't start GDI+" Gui, -Caption +hwndhwnd +E0x...
by _Ne0n
31 Aug 2018, 19:39
Forum: Scripts and Functions (v1)
Topic: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)
Replies: 391
Views: 244466

Re: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)

Very nice idea, I like them! :)
Hehe, thank you. It will be updated soon.
by _Ne0n
31 Aug 2018, 08:47
Forum: Scripts and Functions (v1)
Topic: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)
Replies: 391
Views: 244466

Re: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)

Hello, i wrote two small classes for picture button. I present to you Class_PictureButton. I have uploaded two versions. ------------------------------------------------------------------------------------ Class_PictureButton_v1.ahk [/i] Advantage: - Does not use/require third-party libraries. Writt...

Go to advanced search