Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

GDI+ Manual (v1.43)


  • Please log in to reply
40 replies to this topic
Lucid_Method
  • Members
  • 147 posts
  • Last active: Dec 06 2014 08:39 AM
  • Joined: 19 Apr 2010
Posted Image

CHM manual compiled from tic's GDI+ Library - see GDI+ standard library to download latest library. I took tic's documentation and broke it down into each function, as well as breaking down his examples and linking to the pages for each function in the examples. Many thanks to tic for his awesome graphic library, I just found there are so many functions/options that a CHM was easier to browse.

[ Download GDI+ Manual ]

In the past using home made CHMs I've found that sometimes built in security measures can block images to examples and such. If prompted allow access to whatever the prompt asks. (It's all safe - the code is all there in the rar below if you need to check it)

For backup purposes I also uploaded the CHM project files (which is a compilation of web pages using Microsoft's HTML Help Workshop) if anyone needs/wants them.

*** Updated to version 0.6 of the manual - replaced "GDip" references with "GDI+" ***
Posted Image
Macro Everything
Lucid_Method Index

nfl
  • Guests
  • Last active:
  • Joined: --
This is great. I hated it to scroll through all the functions and searching for the right ones :)

Lucid_Method
  • Members
  • 147 posts
  • Last active: Dec 06 2014 08:39 AM
  • Joined: 19 Apr 2010
Yeah I know, there are so many that when you start to look for something it's overwhelming. I'm hoping at some point to keep breaking down the functions into smaller groups with the same idea..
Posted Image
Macro Everything
Lucid_Method Index

Frankie
  • Members
  • 2930 posts
  • Last active: Feb 05 2015 02:49 PM
  • Joined: 02 Nov 2008
Thanks.

It should be noted about chm files in general that you have unzip it to get it to work (usually).

This could benefit from MSDN links where possible.
aboutscriptappsscripts
Request Video Tutorials Here or View Current Tutorials on YouTube
Any code ⇈ above ⇈ requires AutoHotkey_L to run

Lucid_Method
  • Members
  • 147 posts
  • Last active: Dec 06 2014 08:39 AM
  • Joined: 19 Apr 2010

chm files in general that you have unzip it to get it to work (usually)



That seems to be true.. my first upload of just the chm failed with errors, thus the zip which worked fine

This could benefit from MSDN links where possible.


I agree, I don't have the experience to expand on tic's explanations but setting up links would help. If anyone out there wants to do that research you're welcome to it :-) I'm busy with a project for work right now. Either way I'll add that to the next update.
Posted Image
Macro Everything
Lucid_Method Index

Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006
Nitpick: "GDI" is an acronym meaning "Graphics Device Interface". It doesn't make sense to capitalize "D" and not "I" in "GDip". GDIp, GDI+ and Gdip make more sense.

Lucid_Method
  • Members
  • 147 posts
  • Last active: Dec 06 2014 08:39 AM
  • Joined: 19 Apr 2010
I'm glad you said that :-) I was looking at the screen shot earlier and noticed that I wasn't consistent, and I didn't know which to use. I'll change that next update
Posted Image
Macro Everything
Lucid_Method Index

tic
  • Members
  • 1934 posts
  • Last active: May 30 2018 08:13 PM
  • Joined: 22 Apr 2007
Great work!

Yeh, change it to GDI+ to fit in with the main gdi+ thread and I'll link to it

Thanks for all your hard work

Lucid_Method
  • Members
  • 147 posts
  • Last active: Dec 06 2014 08:39 AM
  • Joined: 19 Apr 2010
Thanks tic, I just updated the manual using "GDI+" as requested
Posted Image
Macro Everything
Lucid_Method Index

tic
  • Members
  • 1934 posts
  • Last active: May 30 2018 08:13 PM
  • Joined: 22 Apr 2007
Nice work. I've linked to it on the main gdi+ page
It would also be nice if the project files were also a zip instead of a rar and if the download link was at the top and in larger writing :)

Does the main link for the chm have to be inside a zip for a reason? as it would be nicer I think if it was a direct link

thanks again!

Frankie
  • Members
  • 2930 posts
  • Last active: Feb 05 2015 02:49 PM
  • Joined: 02 Nov 2008
How do you want MSDN links formated? The functions can be retreived from Gdip.ahk with this script, then google can be used to get the MSDN urls.

n = "(.*?\\)?([^"]+)"
IsFunc := 0
Loop, Read, Gdip.ahk
{
	If InStr(A_LoopReadLine, "{")
	{
		RegExMatch(LastLine, "[A-Za-z0-9_]+", CurrentFunc)
		InFunc++
		LastDLL := ""
	}
	else if InStr(A_LoopReadLine, "}")
	{	
		InFunc--
		If StrLen(LastDLL) > 1
			Msgbox % CurrentFunc " uses " LastDLL
	}
	else if InFunc = 1
	{
		If InStr(A_LoopReadLine, "DllCall") && RegExMatch(A_LoopReadLine, N, M)
			LastDLL := M2
	}
	LastLine := A_LoopReadLine
}

aboutscriptappsscripts
Request Video Tutorials Here or View Current Tutorials on YouTube
Any code ⇈ above ⇈ requires AutoHotkey_L to run

tic
  • Members
  • 1934 posts
  • Last active: May 30 2018 08:13 PM
  • Joined: 22 Apr 2007

How do you want MSDN links formated? The functions can be retreived from Gdip.ahk with this script, then google can be used to get the MSDN urls.

n = "(.*?\\)?([^"]+)"
IsFunc := 0
Loop, Read, Gdip.ahk
{
	If InStr(A_LoopReadLine, "{")
	{
		RegExMatch(LastLine, "[A-Za-z0-9_]+", CurrentFunc)
		InFunc++
		LastDLL := ""
	}
	else if InStr(A_LoopReadLine, "}")
	{	
		InFunc--
		If StrLen(LastDLL) > 1
			Msgbox % CurrentFunc " uses " LastDLL
	}
	else if InFunc = 1
	{
		If InStr(A_LoopReadLine, "DllCall") && RegExMatch(A_LoopReadLine, N, M)
			LastDLL := M2
	}
	LastLine := A_LoopReadLine
}


None of the msdn urls will be of any use as microsoft discourage flat api usage for gdi+ so it will literally just repeat what the parameters are and not give any explanation of what they are or how to use them

Lucid_Method
  • Members
  • 147 posts
  • Last active: Dec 06 2014 08:39 AM
  • Joined: 19 Apr 2010
Frankie: thanks for trying, that would have been useful if that approach worked :-)

tic: do you have any other sources I could use to plug in the holes? It would be worth my time to do that as I learn what some of those functions do
Posted Image
Macro Everything
Lucid_Method Index

tic
  • Members
  • 1934 posts
  • Last active: May 30 2018 08:13 PM
  • Joined: 22 Apr 2007

Frankie: thanks for trying, that would have been useful if that approach worked :-)

tic: do you have any other sources I could use to plug in the holes? It would be worth my time to do that as I learn what some of those functions do


Give me a list of functions/questions and I'll write up explanations if I can :)

Lucid_Method
  • Members
  • 147 posts
  • Last active: Dec 06 2014 08:39 AM
  • Joined: 19 Apr 2010
That works, I'll mail you once I get to that. A lot of the missing entries can be filled in once and duplicated as the same pointers and such are used
Posted Image
Macro Everything
Lucid_Method Index