Announcement

Collapse
No announcement yet.

Fuzzy Graphic

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Fuzzy Graphic

    According to Windows, my bmp is 1024 x 768. According to the help text, the Graphic Window statements specifies the graphic size in pixels without the frame. So I didn't expect this to be fuzzy.

    Code:
            GRAPHIC GET CLIENT TO bpx,bpy
            IF bpx > 0 OR bpy > 0 THEN
                GRAPHIC SET FOCUS
            ELSE
                GRAPHIC WINDOW "CSV 2 SQL Help", 30,20, 1024,768 TO gwin
                GRAPHIC ATTACH gwin,0
                GRAPHIC RENDER CURDIR$ + "\csv2sql help.bmp",(0,0)-(1024,768)
            END IF
    Are the graphic displays zero based or one based? My graphic is fuzzy because I stretched it one pixel (0,0)-(1024,768). I haven't found anything in the help text to suggest whether to use:

    (1,1)-(1024,768)
    or
    (0,0)-(1023,767)

    Either one gives me a sharp image, but which is correct?
    Thanks,

    John Kovacich
    Ivory Tower Software

  • #2
    Pixel positions are zero-based.

    Best regards,

    Bob Zale
    PowerBASIC Inc.

    Comment

    Working...
    X