Skip to content

Commit 57f433f

Browse files
committed
improve Gs.Core.displayImage
change origin
1 parent a3f270d commit 57f433f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

PyRxCore/GsCore.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ void makeGsCoreWrapper()
217217
DS.SARGS({ "blkids: list[PyDb.ObjectId]" , "sx: int", "sy: int", "zoomFactor: float", "bkrgb: list[int] = ..." }), arg("bkrgb") = boost::python::object()).staticmethod("getBlockImages")
218218

219219

220-
.def("displayImage", &GsCore::displayImage, DS.SARGS({ "vpNum : int", "originLeft : int", "originTop : int" , "img : wx.Image" })).staticmethod("displayImage")
220+
.def("displayImage", &GsCore::displayImage, DS.SARGS({ "vpNum : int", "originLeft : int", "originBottom : int" , "img : wx.Image" })).staticmethod("displayImage")
221221

222222
;
223223
}
@@ -292,7 +292,7 @@ boost::python::list GsCore::getBlockImages(const boost::python::list& blkids, in
292292
return images;
293293
}
294294

295-
bool GsCore::displayImage(int viewportNumber, Adesk::Int32 originLeft, Adesk::Int32 originTop, const boost::python::object& image)
295+
bool GsCore::displayImage(int viewportNumber, Adesk::Int32 originLeft, Adesk::Int32 originBottom, const boost::python::object& image)
296296
{
297297
#if defined(_BRXTARGET260)
298298
throw PyNotimplementedByHost();
@@ -366,7 +366,7 @@ bool GsCore::displayImage(int viewportNumber, Adesk::Int32 originLeft, Adesk::In
366366
Adesk::Boolean result = acgsDisplayImage(
367367
viewportNumber,
368368
originLeft,
369-
originTop,
369+
originBottom + imageHeight,
370370
imageWidth,
371371
imageHeight,
372372
static_cast<const void*>(argbBuffer.data()),

pyrx/PyGs.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Core:
1616
def __init__(self, /) -> None: ...
1717
def __reduce__(self, /) -> Any: ...
1818
@staticmethod
19-
def displayImage(vpNum: int, originLeft: int, originTop: int, img: wx.Image, /) -> bool: ...
19+
def displayImage(vpNum: int, originLeft: int, originBottom: int, img: wx.Image, /) -> bool: ...
2020
@staticmethod
2121
def getBlockImage(
2222
blkid: PyDb.ObjectId, sx: int, sy: int, zoomFactor: float, bkrgb: list[int] = ..., /

0 commit comments

Comments
 (0)