Results 1 to 11 of 11
  1. #1

    Image angle in sig

    Why when I add angle to an image does it ignore the size?

    Code:
    image({file:p.dogtags.basic.image_l, x:10, y:2, w:85, h:49}); //Shows a 85x49 dogtag
    
    image({file:p.dogtags.basic.image_l, angle:66, x:10, y:2, w:85, h:49});  //Shows a full size dogtag, at an angle
    Thanks.

  2. #2
    Moderator DyrtyDyk's Avatar
    Join Date
    2011-07-20
    Location
    Down Under
    Posts
    179
    BFBC2 PC
    DyrtyDyk
    BF2142
    DykDyrty
    BF2142
    DyrtyDyk
    BF3 PC
    DyrtyDyk
    Gamer IDs

    XFIRE ID: DyrtyDyk Steam ID: DyrtyDyk

    Re: Image angle in sig

    ooh - I'd not tried an angle on an image - I wonder if we could make a 'speedo' type gauge??

    sorry - cannot help with your Q though!
    DyrtyDyk


  3. #3
    Administrator 1ApRiL's Avatar
    Join Date
    2011-02-12
    Location
    Waiblingen, Germany
    Posts
    1,516
    BFBC2 PC
    1ApRiL
    NFS World
    1APRIL
    BF2
    1ApRiL
    BF3 PC
    1ApRiL

    Re: Image angle in sig

    That is because the libgd function copyRotated does not support with and height.

    Source C:
    Code:
    BGD_DECLARE(void) gdImageCopyRotated (gdImagePtr dst,
                        gdImagePtr src,
                        double dstX, double dstY,
                        int srcX, int srcY,
                        int srcWidth, int srcHeight, int angle)
    Mapped on our opts: x,y,sx,sy,sw,sh,angle
    Admin of bfhstats.com / bf4stats.com / bf3stats.com | Twitter

  4. #4

    Re: Image angle in sig

    Is there another solution?

  5. #5

    Re: Image angle in sig

    use photoshop to angle it first

  6. #6
    Administrator 1ApRiL's Avatar
    Join Date
    2011-02-12
    Location
    Waiblingen, Germany
    Posts
    1,516
    BFBC2 PC
    1ApRiL
    NFS World
    1APRIL
    BF2
    1ApRiL
    BF3 PC
    1ApRiL

    Re: Image angle in sig

    Upload the image in the right size. If you want to do that with images from our image library, you're out of luck.
    Admin of bfhstats.com / bf4stats.com / bf3stats.com | Twitter

  7. #7

    Re: Image angle in sig

    Yeah, I was looking to do it with the dogtags. OK, thx.

  8. #8

    Re: Image angle in sig

    Quote Originally Posted by 1ApRiL View Post
    That is because the libgd function copyRotated does not support with and height.

    Source C:
    Code:
    BGD_DECLARE(void) gdImageCopyRotated (gdImagePtr dst,
                        gdImagePtr src,
                        double dstX, double dstY,
                        int srcX, int srcY,
                        int srcWidth, int srcHeight, int angle)
    Mapped on our opts: x,y,sx,sy,sw,sh,angle
    I don't understand what is the problem in setting width and height after rotation.

    srcWidth and srcHeight you take from image and then apply resize with data from user in sh and sw
    Last edited by stats2013; 2012-09-30 at 11:54.

  9. #9

    Re: Image angle in sig

    the libgd ourcase.co.uk function copyRotated does not support with casesam.co.uk and height.
    Last edited by FYTgcDTR; 2015-11-11 at 03:37.

  10. #10
    Administrator HigH_HawK's Avatar
    Join Date
    2006-03-15
    Location
    UK / GER
    Posts
    1,347

    Re: Image angle in sig

    Quote Originally Posted by FYTgcDTR View Post
    the libgd function copyRotated does not support with and height.
    Please could you give us an example.

  11. #11

    Re: Image angle in sig

    Thank you for an additional great article.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
P-STATS NETWORK FORUM LOGIN CREATE ACCOUNT