Jump to content

Flyer Size


jasonsmith

Recommended Posts

Not from what I am seeing. I have about 3 inches on each side with a ton of vertical space. Looking at the script I think I see if the original size is equal or greater than .8 of the screen size draw it at .8 and keep the ratio. 

 

I'm guessing that the xCoo and yCoo is positioning maybe.... if so I don't get it. 

 

OriginalWidth := Gdip_GetImageWidth(pBitmap)
OriginalHeight := Gdip_GetImageHeight(pBitmap)
Ratio := OriginalWidth/OriginalHeight
; we want flyer to be as big as possible
if (OriginalWidth/(A_ScreenWidth*0.8) >= OriginalHeight/(A_ScreenHeight*0.96)) {
Width := A_ScreenWidth*0.8
Height := Width*(1/Ratio)
} else {
Height := A_ScreenHeight*0.96
Width := Height*Ratio
}
xCoo := (A_ScreenWidth*0.85-Width)//2
yCoo := (A_ScreenHeight-Height)//2
Gui, 1: Show,, Flyer
DrawImageBTB(1, pBitmap, OriginalWidth, OriginalHeight, Width, Height, xCoo, yCoo, 0)
 

 

Link to comment
Share on other sites

Ah, that's exactly it. I find it a bit buggy looking at those things from within the exit menu so I tend to peruse from HP

 

That also explains why all the random numbers I put in the script to change it did nothing LOL. 

 

I guess it would considerably more complicated to increase the size of that one then. 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...