Also from the info box flyout you can get to the pallette options and set the ruler units to pixels. Or if you don't want to change them you can overide the current ruler units by typing in "1024 px" and "768 px" as Lew suggested. No messing about with dpi or resampling!
regards
prixat