View Single Post
Old 10-27-2018, 03:19 PM   #78
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,450
Default

Is this possible without flickering?


Code:
W,H = 5000,5000
local bmp = reaper.JS_LICE_CreateBitmap( true, W, H )
local bmpDC = reaper.JS_LICE_GetDC(bmp )
reaper.JS_LICE_FillRect( bmp, 0, 0, W, H, 0x99009999, 1, "ADD" )

local track_window = reaper.Window_Find("trackview", true) -- GET TRACK VIEW
local track_window_dc =  reaper.JS_GDI_GetWindowDC( track_window )

function main()
reaper.JS_GDI_Blit(track_window_dc, X_start, Y_start, bmpDC, 0, 0, W, H )
reaper.defer(main)
end
main()
This is the short versions of whats going on,but rectangle is constantly updated when window is moved,scrolled etc
Sexan is offline   Reply With Quote