Julian is this the best we can get from the image (its not exact copy of whats on the screen, its washed out, little hard to see)?
Its transparency is depended on AS transparency? Want stronger peak color/contrast, I know I can only manipulate with whole image
Code:
local function get_item_blit(tbl, as_tr, as_start, as_end)
if not tbl then return end
local zoom_lvl, Arr_start_time, Arr_end_time, Arr_pixel, x_view_start, y_view_start, x_view_end, y_view_end, state, scroll = project_info()
local items_bm = {}
local item_bar = 15
for i = 1, #tbl do
items_bm[i] = {}
local item_t, item_h, item_b = A[as_tr].t, A[as_tr].h, A[as_tr].b
local item_start, item_lenght = item_blit(tbl[i], as_start, as_end)
items_bm[i].item_bm = reaper.JS_LICE_CreateBitmap(true, math.floor(item_lenght * zoom_lvl), item_h)
items_bm[i].dc = reaper.JS_LICE_GetDC(items_bm[i].item_bm)
reaper.JS_LICE_Clear(items_bm[i].item_bm, 0)
reaper.JS_GDI_Blit(items_bm[i].dc, 0, 0, track_window_dc, math.floor(item_start * zoom_lvl) - Arr_pixel, ((item_t+item_bar) - y_view_start), math.floor(item_lenght * zoom_lvl), item_h-19) -- (-19 TO COMPENSATE ITEM BAR REMOVING)
end
return items_bm
end