Skip to content

captureScreen can't save windows and icon imformations #277

Closed
@XeonSid

Description

@XeonSid
  • Robotgo version (or commit ref):
  • Go version:1.12.5
  • Gcc version: clang 11.0.0
  • Operating system and bit: macos 10.15.3
  • Resolution:
  • Can you reproduce the bug at Examples:
    • Yes (provide example code)
    • No
    • [■] Not relevant
  • Provide example code:
package main

import (
  "fmt"
  "github.com/go-vgo/robotgo"
)

func main() {
  w,h:=robotgo.GetScreenSize()
  bitmap:=robotgo.CaptureScreen(0,0,w,h)
  fx,fy :=robotgo.FindBitmap(bitmap)
  fmt.Println(fx, fy)
  robotgo.SaveBitmap(bitmap,"a.png")
}
  • Log gist:

Description

when this program is done, "a.png" shows that then the desktop snapshot lacks window and icon information。
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions