get picel location into buffer