Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 18:59

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



GDI+ Rotation Matrix

Discussion on GDI+ Rotation Matrix within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Croco™'s Avatar
 
elite*gold: 235
Join Date: Jan 2012
Posts: 920
Received Thanks: 377
[Gelöst]GDI+ Rotation Matrix

Hi,
ich bin seit einer gefühlten Ewigkeit daran, etwas extrem banales zu schaffen.
Und zwar will ich ein .png um eine bestimmte Anzahl an Grad drehen.
Ich habe zwar bis jetzt die Rotations Matrix gefunden nur finde Leider keine Beispiele bei der das gedrehte Bild gezeichnet wird, sondern nur welche, bei denen es gespeichert wird. Könnt ihr mir einen kleinen Wink geben ?

Edit: Problem gelöst
Quote:
#include <GDIPlus.au3>
#include <Misc.au3>
#include <WindowsConstants.au3>


_GDIPlus_Startup()


$hGui = GUICreate("Test Rotate", 800, 600)
GUISetState()

$hGraphic = _GDIPlus_GraphicsCreateFromHWND($hGui)
$hImage = _GDIPlus_ImageLoadFromFile("Enemy.png")
$iWidth = _GDIPlus_ImageGetWidth($hImage) * 96 / _GDIPlus_ImageGetVerticalResolution($hImage)
$iHeight = _GDIPlus_ImageGetHeight($hImage) * 96 / _GDIPlus_ImageGetHorizontalResolution($hImage)
$hMatrix = _GDIPlus_MatrixCreate()
_GDIPlus_MatrixTranslate($hMatrix, 400, 300)
_GDIPlus_MatrixRotate($hMatrix, 45, "False")
_GDIPlus_GraphicsSetTransform($hGraphic, $hMatrix)
_GDIPlus_GraphicsClear($hGraphic)
_GDIPlus_GraphicsDrawImage($hGraphic, $hImage, -$iWidth / 2, -$iHeight / 2)

While 1
Sleep(200)
WEnd
Croco™ is offline  
Reply


Similar Threads Similar Threads
PQ Rotation
04/10/2012 - WoW Bots - 4 Replies
PQRotation (PQR) is an all-in-one ability rotation application. It uses both simple memory reading as well as a memory detour to execute Lua code. It requires absolutely no setup* (read beta notes). No addons to configure. No pixel scanning to hinder performance. Easily customizable and shareable abilities and rotations. This program was mainly designed for PVE purposes, however it can easily be configured for PVP purposes as well. It will perform your currently selected rotation as...
[Free] Matrix GFX Service Signaturen/Avatara im Matrix Style! [Free]
01/06/2012 - Trading - 70 Replies
Hey Elitepvpers, Ich eröffne jetzt mal meinen Kostenlosen GFX Service. Das ganze ist Kostenlos, wer mir aber Elitegold spenden möchte kann dies gerne tuhen und bekommt die .psd datei per PN. Also, ihr fült bitte folgendes Formular aus und packt es in euren Beitrag: Art: Render: Schrift: Farbe: Aufschrift:
Rotation help
10/31/2011 - World of Warcraft - 6 Replies
Hey, lately I have been working on a application for Theory Crafter, and I have came to a point where I need a rotation from WoW that I can use as a base! All I'm really asking for is a good 3-6 spell rotation, preferably mage or shadow priest, that I can use for this 'experiment' . To anyone who post there rotation, I will quote your post with the results of each rotation/spell so in a way, your helping me and I'm helping you! Eventually I intend to start takeing other varibles, like gear...



All times are GMT +1. The time now is 19:00.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.